随笔分类 -  PAT

摘要:时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThe task of this problem is simple: insert a sequence of distinct positive integers into a h... 阅读全文
posted @ 2015-02-07 22:43 小爷 阅读(158) 评论(0) 推荐(0)
摘要:时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThe highest building in our city has only one elevator. A request list is made up with N pos... 阅读全文
posted @ 2015-02-06 14:40 小爷 阅读(141) 评论(0) 推荐(0)
摘要:时间限制50 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueEva loves to collect coins from all over the universe, including some other planets like Mars... 阅读全文
posted @ 2015-02-06 10:06 小爷 阅读(157) 评论(0) 推荐(0)
摘要:时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven an increasing sequence S of N integers, themedianis the number at the middle position.... 阅读全文
posted @ 2015-02-06 09:18 小爷 阅读(271) 评论(0) 推荐(0)
摘要:时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueShopping in Mars is quite a different experience. The Mars people pay by chained diamonds. E... 阅读全文
posted @ 2015-02-05 23:50 小爷 阅读(129) 评论(0) 推荐(0)
摘要:时间限制150 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven any permutation of the numbers {0, 1, 2,..., N-1}, it is easy to sort them in increasi... 阅读全文
posted @ 2015-02-05 22:36 小爷 阅读(171) 评论(0) 推荐(0)
摘要:http://www.patest.cn/contests/pat-a-practise/1083 1 #include 2 3 #include 4 #include 5 using namespace std; 6 7 struct stu 8 { 9 char name[11]... 阅读全文
posted @ 2015-02-02 07:18 小爷 阅读(154) 评论(0) 推荐(0)
摘要:1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 int cmp(int a,int b) 8 { 9 return a v1;19 for(i=0;i v2;30 ... 阅读全文
posted @ 2015-02-01 08:22 小爷 阅读(196) 评论(0) 推荐(0)
摘要:1 #include 2 #include 3 using namespace std; 4 5 struct MyStruct 6 { 7 int grade[6]; 8 int Done[6]; 9 int Perfect; 10 int... 阅读全文
posted @ 2015-02-01 08:14 小爷 阅读(229) 评论(0) 推荐(0)
摘要:1 /* 2 3 4 L (>=60), the lower bound of the qualified grades -- 5 that is, only the ones whose grades of talent and virtue are both not below... 阅读全文
posted @ 2015-02-01 08:11 小爷 阅读(347) 评论(1) 推荐(1)
摘要:1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 struct MyStruct 8 { 9 char name[9];10 int age,worth;11 };12 13 int ... 阅读全文
posted @ 2015-02-01 08:09 小爷 阅读(266) 评论(0) 推荐(0)
摘要:1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 struct MyStruct 8 { 9 char ID[7];10 char name[9];11 int grade;12 };13 14 ... 阅读全文
posted @ 2015-02-01 08:08 小爷 阅读(171) 评论(0) 推荐(0)
摘要:1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 int main() 7 { 8 map ToHour; 9 int i;10 for(i=0;i='A'&&line1[i]='A'... 阅读全文
posted @ 2015-01-31 23:46 小爷 阅读(246) 评论(0) 推荐(0)
摘要:1 #include 2 int main() 3 { 4 int ans1[3]; 5 int ans2[3]; 6 while(scanf("%d.%d.%d %d.%d.%d",&ans1[0],&ans1[1],&ans1[2],&ans2[0],&ans2[1],&a... 阅读全文
posted @ 2015-01-31 23:45 小爷 阅读(163) 评论(0) 推荐(0)
摘要:#include #include int main(){ int n,i; while(scanf("%d",&n)!=EOF) { char ManID[11]="",FelID[11]="",ManName[11],FelName[11]; char TemID[11],TemNa... 阅读全文
posted @ 2015-01-31 23:43 小爷 阅读(317) 评论(0) 推荐(0)
摘要:1 #include 2 #include 3 struct MyStruct 4 { 5 char ID[11]; 6 char Password[11]; 7 bool changed; 8 }; 9 int main()10 {11 int n,i,j;1... 阅读全文
posted @ 2015-01-31 23:42 小爷 阅读(390) 评论(0) 推荐(0)
摘要:1 #include 2 #include 3 using namespace std; 4 5 int main() 6 { 7 int R,G,B,i; 8 map mm; 9 for(i=0;i <= 9;i++)10 mm[i]='0'+i;1... 阅读全文
posted @ 2015-01-31 23:41 小爷 阅读(135) 评论(0) 推荐(0)
摘要:1 #include 2 3 struct MyStruct 4 { 5 int exp; 6 double coe; 7 }; 8 9 int main()10 {11 int k1,k2,i,j;12 MyStruct ans1[10],ans2[10];... 阅读全文
posted @ 2015-01-31 23:40 小爷 阅读(163) 评论(0) 推荐(0)
摘要:1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 struct stu 8 { 9 char ID[16];10 int GetTime[3];11 int LeaveT... 阅读全文
posted @ 2015-01-31 23:38 小爷 阅读(198) 评论(0) 推荐(0)
摘要:1 #include 2 #include 3 #include 4 using namespace std; 5 6 int main() 7 { 8 string str; 9 char num[10][6]={"zero","one","two","three","f... 阅读全文
posted @ 2015-01-31 23:37 小爷 阅读(129) 评论(0) 推荐(0)