沧浪之歌
沧浪之歌
全部文章
分类
归档
标签
去牛客网
登录
/
注册
沧浪之歌的博客
全部文章
(共57篇)
题解 | 不要三句号的歪
#include <stdio.h> int main() { unsigned long long b, c; scanf("%*llu,%llu,...,%llu", &b, &c); printf("%llu\...
2026-04-21
0
7
题解 | 字符串展开
#include <iostream> #include <cctype> #include <algorithm> using namespace std; std::string repeat(char ch, int times) { std::...
2026-04-21
0
11
题解 | 多项式输出
#include <stdio.h> int main() { int n; scanf("%d\n", &n); int a[n + 1]; for (int i = n; i >= 0; --i) { ...
2026-04-20
0
14
题解 | 回文日期
#include <stdio.h> int isLeapYear(int year) { if ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0) { return 1; } ...
2026-04-20
0
10
题解 | 构造C的歪
#include <stdio.h> int main() { int a, b; scanf("%d %d", &a, &b); printf("%d\n", 2 * b - a); return...
2026-04-20
0
12
题解 | 铺地毯
#include <stdio.h> int main() { int n, x, y; scanf("%d\n", &n); int carpet[n][4]; for (int i = 0; i < n; ++i) ...
2026-04-20
0
12
题解 | A×A=B
#include <math.h> #include <stdio.h> int main() { int n; scanf("%d\n", &n); long long a, b; while (n--) { ...
2026-04-18
0
13
题解 | B=A×A
float 类型由 1 位符号位、8 位指数和 23 位尾数构成,能表示大约 6-7 位十进制有效数字;double 类型由 1 位符号位、11 位指数和 52 位尾数构成,能表示大约 15-16 位十进制有效数字; long double 类型提供比 double更高的精度和范围,具体大小和实现因...
2026-04-18
0
14
题解 | A-B≠C
#include <stdio.h> #include <math.h> #define PRECISION 1000000 int main() { double a, b, c; scanf("%lf %lf %lf", &...
2026-04-18
0
12
题解 | 学生基本信息输入输出
2026 年 4 月 18 日,如果没有 `round` 函数手动四舍五入的话,至少有一组用例会通不过。 #include <stdio.h> #include <math.h> int main() { int i; float a, b, c; ...
2026-04-18
0
13
首页
上一页
1
2
3
4
5
6
下一页
末页