牛客421816170号
牛客421816170号
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛客421816170号的博客
全部文章
(共247篇)
题解 | 牛牛数数
#include <stdio.h>#include <stdbool.h>bool contain_four(int i){ while (i > 0) { if (i % 10 == 4) { return false; } i /= 10; } r...
2025-10-26
0
10
题解 | 求四位数各个数位之和
#include <stdio.h> #include <stdio.h> int sum(int a) { if (a < 10) return a; int sum = 0; int tmp = 0; while (a) { /*tmp = ...
2025-10-26
0
9
题解 | 平方根
#include <stdio.h> #include <math.h> #include <stdio.h> int main() { int a = 0; scanf("%d", &a); printf("%d\...
2025-10-26
0
10
题解 | 素数判断
#include <stdio.h> #include <stdbool.h> #include <math.h> bool isprime(int n) { if (n <= 1) return false; ...
2025-10-26
0
10
题解 | 求素数
#include <stdio.h> int count_prime_number(int n, int m) { int count = 0; for (int i = n; i <= m; i++) { if (i < 2) // 0、1 不...
2025-07-26
1
24
题解 | 疫情死亡率
#include <stdio.h> int main() { double c = 0; double d = 0; double calc = 0; scanf("%lf %lf", &c, &d); calc = (d / c * ...
2025-07-20
1
32
题解 | 复读机
#include <stdio.h> int main() { int a = 0; long long b = 0; float c = 0.0f; char d = 0; char str1[10000] = { 0 }; scanf("%d %lld ...
2025-07-20
0
46
题解 | 牛牛学说话之-字符串
#include <stdio.h> int main() { char str1[10000] = { 0 }; scanf("%s", str1); printf("%s\n", str1); return 0; }
2025-07-20
0
37
题解 | 矩阵计算
#include <stdio.h> void Input_Arr(int arr[][11], int x, int y) { for (int i = 0; i < x; i++) { for (int j = 0; j < y; j++) { sc...
2025-07-13
0
27
题解 | 密码验证
#include <stdio.h> #include <string.h> int main() { char str1[20] = {0}; char str2[20] = {0}; scanf("%s %s", str1, str2); ...
2025-07-13
0
26
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页