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

2025年11月23日

1038. Recover the Smallest Number (30)

摘要: #include <iostream> #include <string.h> #include <string> #include <algorithm> #include <vector> using namespace std; int cmp(string a, string b) { st 阅读全文

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

1037. Magic Coupon (25)

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

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

1036. Boys vs Girls (25)

摘要: #include <iostream> using namespace std; struct node { char name[20], gender, id[20]; int grade; }; int main() { int n; scanf("%d", &n); int i, grade[ 阅读全文

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

1035. Password (20)

摘要: #include <iostream> #include <vector> #include <string.h> using namespace std; struct node { char name[20], password[20]; }; int main() { int n; scanf 阅读全文

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

1034. Head of a Gang (30)

摘要: #include <iostream> #include <vector> #include <algorithm> using namespace std; int tree[2010], sum[2010], smallindex[2010], bigindex[27000], weight[2 阅读全文

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

1033. To Fill or Not to Fill (25)

摘要: #include <iostream> #include <algorithm> using namespace std; struct node { double dis, p; }stations[510]; int cmp(node n1, node n2) { return n1.dis < 阅读全文

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

1032. Sharing (25)

摘要: #include <iostream> #include <vector> using namespace std; struct node { int address, next; char data; }nod[100000]; int main() { int begin[2], n; sca 阅读全文

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

1031. Hello World for U (20)

摘要: #include <iostream> #include <string.h> using namespace std; int main() { char s[100]; gets(s); int n1, n2, n = strlen(s), flag = 0; for(n2 = 3; n2 <= 阅读全文

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

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 王景迁 阅读(5) 评论(0) 推荐(0)

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

导航