沧浪之歌
沧浪之歌
全部文章
分类
归档
标签
去牛客网
登录
/
注册
沧浪之歌的博客
全部文章
(共66篇)
题解 | 小红与奇数
#include <stdio.h> int main() { int x; scanf("%d", &x); puts((x & 1) ? "No" : "Yes"); ret...
2026-04-26
0
26
题解 | x_to_y_2
#include <stdio.h> int main() { int t, times; long long x, y; scanf("%d\n", &t); while (t--) { scanf(&quo...
2026-04-26
0
30
题解 | 【模板】位运算Ⅲ ‖ 混合运算
#include <stdio.h> int main() { int t, o, p; unsigned int x; scanf("%d\n", &t); while (t--) { scanf("...
2026-04-26
0
29
题解 | 二进制不同位数
#include <stdio.h> int count1bits(int x) { int count = 0; for (int i = 0; i < 32; ++i) { if (x & (1 << i)) { ...
2026-04-26
0
25
题解 | 出现奇数次的数
#include <stdio.h> int main() { int n, a, a1, a2; scanf("%d\n", &n); scanf("%d", &a); while (n--) {...
2026-04-26
0
25
题解 | 二进制位中1的数量
#include <stdio.h> int main() { long long n; int count = 0; scanf("%lld", &n); for (int i = 0; i < 64; ++i) { ...
2026-04-26
0
24
题解 | 斐波那契数列
#include <stdio.h> int main() { int n; scanf("%d", &n); int fib[41] = {0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55}; for ...
2026-04-26
0
25
题解 | 小红的方神题spj
#include <stdio.h> #include <stdlib.h> int main() { int n; scanf("%d\n", &n); int arr[n]; for (int i = 0; i...
2026-04-26
0
23
题解 | rin和快速迭代
#include <stdio.h> #include <math.h> long long func(long long x) { long long root = sqrt(x), result = 0; for (long long i = 1; i ...
2026-04-26
0
27
题解 | 【模板】栈的操作
自定义栈实现: #include <stddef.h> #include <stdio.h> #include <stdlib.h> typedef struct stack { int val; struct stack* top; } sta...
2026-04-23
0
25
首页
上一页
1
2
3
4
5
6
7
下一页
末页