上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 69 下一页

2025年11月23日

1098. Insertion or Heap Sort (25)

摘要: #include <iostream> #include <algorithm> using namespace std; int ori[110], cur[110]; void adjustdown(int k, int max) { ori[0] = ori[k]; int i; for(i 阅读全文

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

1097. Deduplication on a Linked List (25)

摘要: #include <iostream> #include <vector> using namespace std; struct node { int address, key, next; }linklist[100000]; int flag[10010]; vector<node> v[3] 阅读全文

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

1096. Consecutive Factors (20)

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

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

1095. Cars on Campus (30)

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

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

1094. The Largest Generation (25)

摘要: #include <iostream> #include <vector> #include <queue> using namespace std; vector<int> v[110]; queue<int> q; int vis[110], level, maxcount, maxlevel; 阅读全文

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

1093. Count PAT's (25)

摘要: #include <iostream> #include <string.h> using namespace std; char s[100010]; int main() { gets(s); int i, len = strlen(s); long long pcount = 0, acoun 阅读全文

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

1092. To Buy or Not to Buy (20)

摘要: #include <iostream> #include <string.h> using namespace std; int aflag[130], bflag[130]; int main() { char a[1010], b[1010]; gets(a); gets(b); int len 阅读全文

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

1091. Acute Stroke (30)

摘要: #include <iostream> #include <queue> using namespace std; struct node { int x, y, z; }; queue<node> q; int flag[1300][130][70], m, n, l, vis[1300][130 阅读全文

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

1090. Highest Price in Supply Chain (25)

摘要: #include <iostream> #include <vector> #include <queue> using namespace std; vector<int> v[100010]; queue<int> q; double p, r; int res; void bfs() { in 阅读全文

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

1089. Insert or Merge (25)

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

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

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 69 下一页

导航