摘要: #include <bits/stdc++.h> using namespace std; const int N = 25; int a[N][N][N]; int main() { int w, x, h, q; cin >> w >> x >> h >> q; int x1, y1, z1, 阅读全文
posted @ 2021-11-10 15:19 糖豆爸爸 阅读(53) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> using namespace std; const int N = 1010; int a[N][5];//二维的最后一个位置,装总分 int n; int cnt; int main() { cin >> n; for (int i = 1; i 阅读全文
posted @ 2021-11-10 15:13 糖豆爸爸 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 重点: 用数组记数,大于$0$的就表示被移走了,等于$0$的没动过。 #include <bits/stdc++.h> using namespace std; const int N = 10010; int b[N]; int l; int m; //区域的数目 int u, v; //表示一个 阅读全文
posted @ 2021-11-10 15:10 糖豆爸爸 阅读(95) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> using namespace std; const int N = 210; int a[N], cnt; int n; int main() { cin >> n; while (n > 1) { a[cnt++] = n; if (n % 2 阅读全文
posted @ 2021-11-10 15:05 糖豆爸爸 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 题目传送门 #include <bits/stdc++.h> using namespace std; const int N = 110; int a[N]; int main() { int idx; //数字0时终止输入 for (idx = 0;; idx++) { cin >> a[idx 阅读全文
posted @ 2021-11-10 14:42 糖豆爸爸 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 题目传送门 重点: 使用数组为每条小鱼记数。 #include <bits/stdc++.h> using namespace std; const int N = 110; int a[N], b[N], n; int main() { cin >> n; //每一条小鱼的可爱值 for (int 阅读全文
posted @ 2021-11-10 13:46 糖豆爸爸 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 第一部分 语言入门 第一章 简简单单写程序 例 1-11 评测机队列 第二章 顺序结构程序设计 例题 P5703 红 例5 P5704 红 例6 P5705 红 例71 P5706 红 例8 P1425 红 例10 P3954 红 例11(NOIP 2017 PJ T1) P5707 橙 例12 习 阅读全文
posted @ 2021-11-10 13:36 糖豆爸爸 阅读(2290) 评论(1) 推荐(1) 编辑
Live2D