上一页 1 ··· 55 56 57 58 59 60 61 62 63 ··· 171 下一页
摘要: 题目传送门 #include <bits/stdc++.h> using namespace std; char c;//操作符 int n, a, b; char s[100]; int main() { cin >> n; while (n--) { //学习scanf和sprintf两个函数的 阅读全文
posted @ 2021-11-18 09:48 糖豆爸爸 阅读(114) 评论(0) 推荐(0)
摘要: 题目传送门 #include <bits/stdc++.h> using namespace std; const int N = 30; const int INF = 0x3f3f3f3f; int Max, Min = INF; int b[N]; //计数数组 bool IsPrime(in 阅读全文
posted @ 2021-11-18 09:42 糖豆爸爸 阅读(169) 评论(0) 推荐(0)
摘要: 题目传送门 #include <bits/stdc++.h> using namespace std; int n; string s; int main() { cin >> n >> s; for (int i = 0; i < s.size(); i++) { int c = s[i] + n 阅读全文
posted @ 2021-11-18 09:34 糖豆爸爸 阅读(157) 评论(0) 推荐(0)
摘要: 题目传送门 #include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; //方式1 for (int i = 0; i < s.size(); i++) printf("%c", toupper(s[i 阅读全文
posted @ 2021-11-18 09:27 糖豆爸爸 阅读(193) 评论(0) 推荐(0)
摘要: #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 糖豆爸爸 阅读(75) 评论(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 糖豆爸爸 阅读(251) 评论(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 糖豆爸爸 阅读(118) 评论(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 糖豆爸爸 阅读(138) 评论(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 糖豆爸爸 阅读(63) 评论(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 糖豆爸爸 阅读(242) 评论(0) 推荐(0)
上一页 1 ··· 55 56 57 58 59 60 61 62 63 ··· 171 下一页
Live2D