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

2025年11月23日

1018. Public Bike Management (30)

摘要: #include <iostream> #include <vector> using namespace std; struct node { int next, t; }; vector<node> v[510]; vector<int> path, res; int perfect, sp, 阅读全文

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

1017. Queueing at Bank (25)

摘要: #include <iostream> #include <vector> #include <algorithm> using namespace std; struct node { int arriving, processing; }; int cmp(node n1, node n2) { 阅读全文

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

1016. Phone Bills (25)

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

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

1015. Reversible Primes (20)

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

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

1014. Waiting in Line (30)

摘要: #include <iostream> #include <queue> using namespace std; int main() { int n, m, k, q; scanf("%d%d%d%d", &n, &m, &k, &q); int processing[1010], i, res 阅读全文

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

1013. Battle Over Cities (25)

摘要: #include <iostream> #include <vector> using namespace std; int tree[1010], sum[1010]; void init(int n) { int i; for(i = 1; i <= n; i++) { tree[i] = -1 阅读全文

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

1012. The Best Rank (25)

摘要: #include <iostream> #include <algorithm> using namespace std; struct node { int id, score[5]; }stu[2010]; int flag[1000000], bestrankindex[1000000], c 阅读全文

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

1011. World Cup Betting (20)

摘要: #include <iostream> using namespace std; int main() { int index[3], i, j; double max[3], cur; for(i = 0; i <= 2; i++) { for(j = 0; j <= 2; j++) { scan 阅读全文

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

1010. Radix (25)

摘要: #include "stdafx.h" #include <iostream> #include <string.h> using namespace std; long long getnumbychar(char c) { long long num; if(c >= '0' && c <= ' 阅读全文

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

1009. Product of Polynomials (25)

摘要: #include "stdafx.h" #include <iostream> #include <map> using namespace std; int main() { int n1; scanf("%d", &n1); int i, a; double b; map<int, double 阅读全文

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

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

导航