上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 69 下一页

2025年11月23日

1078. Hashing (25)

摘要: #include <iostream> #include <math.h> using namespace std; int flag[10010]; int judge(int n) { if(n == 1) { return 0; } int r = sqrt(n * 1.0), i; for( 阅读全文

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

1077. Kuchiguse (20)

摘要: #include <iostream> #include <string.h> using namespace std; int main() { int n; scanf("%d", &n); getchar(); char a[260]; gets(a); int alen = strlen(a 阅读全文

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

1076. Forwards on Weibo (30)

摘要: #include <iostream> #include <vector> #include <queue> #include <string.h> using namespace std; int l, vis[1010], level, res; vector<int> v[1010]; que 阅读全文

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

1075. PAT Judge (25)

摘要: #include <iostream> #include <algorithm> #include <string.h> #include <vector> using namespace std; struct node { int id, score[6], fullmarknum, total 阅读全文

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

1074. Reversing Linked List (25)

摘要: #include <iostream> #include <vector> using namespace std; struct node { int address, key, next; }nod[100010]; int main() { int begin, n, k; scanf("%d 阅读全文

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

1073. Scientific Notation (20)

摘要: #include <iostream> #include <string.h> using namespace std; char s[10010], former[10010]; int main() { gets(s); if(s[0] == '-') { printf("-"); } int 阅读全文

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

1072. Gas Station (30)

摘要: #include <iostream> #include <string.h> #include <vector> using namespace std; struct node { int next, dis; }; int n; int getindex(char s[]) { int ind 阅读全文

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

1071. Speech Patterns (25)

摘要: #include <iostream> #include <string> #include <string.h> #include <map> using namespace std; char s[1048580], cur[1048580], res[1048580]; int judge(c 阅读全文

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

1070. Mooncake (25)

摘要: #include <iostream> #include <algorithm> using namespace std; struct node { double amounts, prices, perprice; }mooncakes[1010]; int cmp(node n1, node 阅读全文

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

1069. The Black Hole of Numbers (20)

摘要: #include <iostream> #include <string.h> #include <algorithm> using namespace std; int cmp(char a, char b) { return a > b; } int main() { int num[2]; s 阅读全文

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

上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 69 下一页

导航