上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 74 下一页

2025年11月23日

1030. Travel Plan (30)

摘要: #include <iostream> #include <vector> #include <string.h> using namespace std; struct node { int next, dis, cost; }; int main() { int n, m, s, d; scan 阅读全文

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

1029. Median (25)

摘要: #include <iostream> #include <vector> #include <algorithm> using namespace std; int main() { int n; scanf("%d", &n); int i; long int num; vector<long 阅读全文

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

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 王景迁 阅读(12) 评论(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 王景迁 阅读(14) 评论(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 王景迁 阅读(14) 评论(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 王景迁 阅读(8) 评论(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 王景迁 阅读(12) 评论(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 王景迁 阅读(9) 评论(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 王景迁 阅读(7) 评论(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 王景迁 阅读(18) 评论(0) 推荐(0)

上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 74 下一页

导航