上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 69 下一页

2025年11月23日

1028. List Sorting (25)

摘要: #include <iostream> #include <algorithm> #include <string.h> using namespace std; struct node { int id, score; char name[10]; }stu[100010]; int c; int 阅读全文

posted @ 2025-11-23 17:00 王景迁 阅读(5) 评论(0) 推荐(0)

1027. Colors in Mars (20)

摘要: #include <iostream> #include <vector> using namespace std; int main() { int num, i; vector<int> v[4]; for(i = 1; i <= 3; i++) { scanf("%d", &num); if( 阅读全文

posted @ 2025-11-23 17:00 王景迁 阅读(4) 评论(0) 推荐(0)

1026. Table Tennis (30)

摘要: #include <iostream> #include <vector> #include <algorithm> using namespace std; struct node { int arriving, playing, hour, minute, second; }; int tabl 阅读全文

posted @ 2025-11-23 16:59 王景迁 阅读(4) 评论(0) 推荐(0)

1025. PAT Ranking (25)

摘要: #include <iostream> #include <vector> #include <algorithm> using namespace std; struct node { long long registration_number; int score, location_numbe 阅读全文

posted @ 2025-11-23 16:59 王景迁 阅读(1) 评论(0) 推荐(0)

1024. Palindromic Number (25)

摘要: #include <iostream> #include <string.h> using namespace std; int judge(char s[]) { int len = strlen(s), i, r = len / 2 - 1; for(i = 0; i <= r; i++) { 阅读全文

posted @ 2025-11-23 16:59 王景迁 阅读(3) 评论(0) 推荐(0)

1023. Have Fun with Numbers (20)

摘要: #include <iostream> #include <string.h> using namespace std; int charcount[2][10]; char s[2][30]; void setstringcount(int index) { int len = strlen(s[ 阅读全文

posted @ 2025-11-23 16:58 王景迁 阅读(2) 评论(0) 推荐(0)

1022. Digital Library (30)

摘要: #include <iostream> #include <string> #include <string.h> #include <map> #include <vector> #include <algorithm> using namespace std; int main() { int 阅读全文

posted @ 2025-11-23 16:58 王景迁 阅读(2) 评论(0) 推荐(0)

1021. Deepest Root (25)

摘要: #include <iostream> #include <queue> #include <vector> #include <string.h> using namespace std; int vis[10010], sum[10010], tree[10010], level; queue< 阅读全文

posted @ 2025-11-23 16:58 王景迁 阅读(4) 评论(0) 推荐(0)

1020. Tree Traversals (25)

摘要: #include <iostream> #include <queue> using namespace std; struct node { int lchild, rchild, key; }tree[40]; int post[40], in[40], r, first = 1; queue< 阅读全文

posted @ 2025-11-23 16:57 王景迁 阅读(3) 评论(0) 推荐(0)

1019. General Palindromic Number (20)

摘要: #include <iostream> #include <vector> using namespace std; int main() { int n, b; scanf("%d%d", &n, &b); if(n == 0) { printf("Yes\n0\n"); return 0; } 阅读全文

posted @ 2025-11-23 16:57 王景迁 阅读(3) 评论(0) 推荐(0)

上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 69 下一页

导航