随笔分类 - 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...
阅读全文
摘要:时间限制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...
阅读全文
摘要:时间限制50 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueEva loves to collect coins from all over the universe, including some other planets like Mars...
阅读全文
摘要:时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven an increasing sequence S of N integers, themedianis the number at the middle position....
阅读全文
摘要:时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueShopping in Mars is quite a different experience. The Mars people pay by chained diamonds. E...
阅读全文
摘要:时间限制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...
阅读全文
摘要: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]...
阅读全文
摘要: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 ...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要: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 ...
阅读全文
摘要: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 ...
阅读全文
摘要: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'...
阅读全文
摘要: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...
阅读全文
摘要:#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...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要: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];...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文

浙公网安备 33010602011771号