沧浪之歌
沧浪之歌
全部文章
分类
归档
标签
去牛客网
登录
/
注册
沧浪之歌的博客
全部文章
(共57篇)
题解 | 小乐乐找最大数
使用 std::max 函数: #include <iostream> #include <algorithm> using namespace std; int main() { int a, b, c, d; std::cin >> a &...
2026-04-18
0
15
题解 | Letter Song ~ 致十年后的我们
#include <stdio.h> int main() { int year, month, day; scanf("%d-%d-%d", &year, &month, &day); printf("%d...
2026-04-18
0
13
题解 | 排序危机
将原字符数组分类统计后填入到新字符数组中: #include <stdio.h> #include <stdlib.h> int main() { int n; scanf("%d\n", &n); char* str =...
2026-04-18
0
14
题解 | 添加逗号
已知 n >= 1,将 n 每千位值存储在数组中: #include <stdio.h> int main() { int n; scanf("%d", &n); int parts[4] = {0, 0, 0, 0}; ...
2026-04-18
0
13
题解 | 简写单词
#include <stdio.h> #include <ctype.h> int main() { char s[51]; while (scanf("%s", s) != EOF) { // 注意 while 处理多个 case ...
2026-04-18
0
10
题解 | 字符串操作
#include <stdio.h> int main() { int n, m; scanf("%d %d", &n, &m); char str[n + 1]; scanf("%s", str)...
2026-04-18
0
12
题解 | 牛牛的替换
#include <stdio.h> int main() { int n; char a1, a2, a3, a4; scanf("%d %c %c %c %c\n", &n, &a1, &a2, &a3, ...
2026-04-18
0
14
题解 | 标题统计
使用 getchar() 函数读取输入。 #include <stdio.h> int main() { char c; int count = 0; while ((c = getchar()) != EOF) { if (c != ' ' &...
2026-04-18
0
13
题解 | while
#include <stdio.h> int main() { char szWhile[6] = "while", c; int opCount = 0; for (int i = 0; i < 5; ++i) { s...
2026-04-18
0
12
题解 | 二维斐波那契数列
#include <iostream> #include <vector> using namespace std; int main() { int n, m, a = 1; std::cin >> n >> m; std...
2026-04-17
0
13
首页
上一页
1
2
3
4
5
6
下一页
末页