无聊的劳伦斯在做测评
无聊的劳伦斯在做测评
全部文章
分类
归档
标签
去牛客网
登录
/
注册
无聊的劳伦斯在做测评的博客
全部文章
(共71篇)
题解 | 小红喜欢1
#include <stdio.h> int main() { for (int i = 0; i <= 5; i++) { int a = 0; scanf("%d", &a); if (1 == a) { printf(&quo...
2026-03-12
0
9
题解 | 记数问题
#include <stdio.h> int main() { int n = 0; int x = 0; int count = 0; scanf("%d %d", &n, &x); for (int i = 1; i <= n; ...
2026-03-12
0
7
题解 | 水仙花数
#include <stdio.h> int partition(int x,int *y) { if (x == 0) { return 0; } //获取整数的位数 int count = 0; int n = 0; n = x; while (n) { n ...
2026-03-11
0
6
题解 | 牛牛数数
#include <stdio.h> int main() { //1.个位数是4 //2.十位数是4 // ... //3.是四的倍数 int n = 0; int include_four = 0; scanf("%d", &n); fo...
2026-03-11
0
11
题解 | 奇偶统计
#include <stdio.h> int main() { int n = 0; scanf("%d", &n); if (n % 2 == 0) { printf("%d %d", n / 2, n / 2); } e...
2026-03-11
0
9
题解 | 魔法数字变换
#include <stdio.h> int main() { int n = 0; int count = 0; scanf("%d", &n); while (1) { if (n % 2 == 0) { n = n / 2; } ...
2026-03-11
0
9
题解 | 牛牛学数列
#include <stdio.h> int sum_n(int x) { int sum = 0; if (x % 2 == 0) { sum = (x / 2) * -1; } else { sum = (x / 2) + 1; } return sum; }...
2026-03-10
0
11
题解 | 多组数据a+b III
#include <stdio.h> int main() { int a = 0; int b = 0; while (1) { scanf("%d %d", &a, &b); if (a == 0 && b == 0...
2026-03-10
0
11
题解 | 小乐乐查找数字
#include <stdio.h> int main() { int n = 0; int num[100] = { 0 }; int goal = 0; int count = 0; scanf("%d", &n); for (int i =...
2026-03-10
0
11
题解 | 有序序列判断
#include <stdio.h> int main() { int count = 0; int a = 0; int b = 0; scanf("%d", &count); scanf("%d", &a); fo...
2026-03-10
0
8
首页
上一页
1
2
3
4
5
6
7
8
下一页
末页