菜宝哈哈哈
菜宝哈哈哈
全部文章
分类
归档
标签
去牛客网
登录
/
注册
菜宝哈哈哈的博客
全部文章
(共23篇)
题解 | 牛牛的数组匹配
#include <stdio.h> #include <stdlib.h> // for abs() int main() { int n, m; scanf("%d %d", &n, &m); int a[...
2026-04-20
0
9
题解 | 扫雷
#include <stdio.h> int main(int argc, char const* argv[]) { int a, b; scanf("%d %d", &a, &b); getchar(); // 消耗掉输...
2026-04-20
0
11
题解 | 蛇形矩阵
#include <stdio.h> int main() { int n; scanf("%d", &n); int matrix[1000][1000] = {0}; // n最大1000 int num = 1; ...
2026-04-20
0
13
题解 | 回型矩阵
#include <stdio.h> int main() { int n; scanf("%d", &n); int matrix[19][19] = {0}; // 最大 n=19 int num = 1; ...
2026-04-20
0
11
题解 | 有序序列判断
#include <stdio.h> int main() { int a; scanf("%d", &a); int b[a]; // 读取数组 for (int i = 0; i < a; i++) { ...
2026-04-18
0
12
题解 | 圣诞树
#include <stdio.h> void fun_0() { printf("* * * "); } void fun_1() { printf("* "); } void fun_2() { printf(&...
2026-04-18
0
14
题解 | 金币
// 1 2 2 3 3 3 4 4 4 5 5 5 5 6 6 6 6 6 7 7 7 7 7 8 8 8 8 8 9 9 9 9 9 10 10 10 10 10 11 11 11 11 11 12 12 12 12 12 13 13 13 13 13 #include <stdio...
2026-04-17
0
13
题解 | 公务员面试
#include <stdio.h> int main() { int score; int max, min, sum; float avg; // 多组输入,每组7个分数 while (1) { // 初始化每组的统计变量 ...
2026-04-17
0
16
题解 | 变种水仙花
#include <stdio.h> int power10(int k) { int res = 1; for (int i = 0; i < k; i++) res *= 10; return res; } int main() { for ...
2026-04-17
0
14
题解 | 包含数字9的数
#include <stdio.h> int main() { int count = 0; for (int i = 1; i <= 2019; i++) { int temp = i; // 用临时变量分解数位 ...
2026-04-16
0
12
首页
上一页
1
2
3
下一页
末页