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

2025年11月25日

1102. Invert a Binary Tree (25)

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

posted @ 2025-11-25 09:10 王景迁 阅读(12) 评论(0) 推荐(0)

1103. Integer Factorization (30)

摘要: #include "stdafx.h" #include <iostream> #include <algorithm> #include <queue> #include <string.h> using namespace std; vector<int> path, res; int k, p 阅读全文

posted @ 2025-11-25 09:10 王景迁 阅读(11) 评论(0) 推荐(0)

1104. Sum of Number Segments (20)

摘要: #include <iostream> using namespace std; double num[100010]; int main() { int n; scanf("%d", &n); int i; for(i = 1; i <= n; i++) { scanf("%lf", &num[i 阅读全文

posted @ 2025-11-25 09:10 王景迁 阅读(8) 评论(0) 推荐(0)

1105. Spiral Matrix (25)

摘要: #include <iostream> #include <algorithm> #include <algorithm> using namespace std; int num[10010], arr[110][110]; int cmp(int a, int b) { return a > b 阅读全文

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

1106. Lowest Price in Supply Chain (25)

摘要: #include <iostream> #include <vector> #include <queue> using namespace std; double p, r; vector<int> v[100010]; queue<int> q; int flag, bfscount; void 阅读全文

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

1107. Social Clusters (30)

摘要: #include <iostream> #include <vector> #include <algorithm> using namespace std; int tree[1010], sum[1010]; vector<int> v[1010]; int cmp(int a, int b) 阅读全文

posted @ 2025-11-25 09:10 王景迁 阅读(9) 评论(0) 推荐(0)

1108. Finding Average (20)

摘要: #include <iostream> #include <string.h> using namespace std; int main() { int n; scanf("%d", &n); int i, len, xiaoshu, j, begin, pointcount, flag, num 阅读全文

posted @ 2025-11-25 09:10 王景迁 阅读(15) 评论(0) 推荐(0)

1109. Group Photo (25)

摘要: #include <iostream> #include <string.h> #include <algorithm> using namespace std; struct node { int height; char name[10]; }people[10010]; char res[10 阅读全文

posted @ 2025-11-25 09:10 王景迁 阅读(14) 评论(0) 推荐(0)

1110. Complete Binary Tree (25)

摘要: #include <iostream> #include <queue> #include <string.h> using namespace std; struct node { int lchild, rchild; }tree[30]; queue<int> q; int res = 1, 阅读全文

posted @ 2025-11-25 09:10 王景迁 阅读(13) 评论(0) 推荐(0)

1111. Online Map (30)

摘要: #include <iostream> #include <vector> #include <string.h> using namespace std; struct node { int next, length, time; }; void print(vector<int> v) { in 阅读全文

posted @ 2025-11-25 09:07 王景迁 阅读(15) 评论(0) 推荐(0)

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

导航