一枚朱
一枚朱
全部文章
分类
归档
标签
去牛客网
登录
/
注册
一枚朱的博客
全部文章
(共43篇)
题解 | #空心正方形图案#
#include <stdio.h> int main() { //看成矩阵 int n = 0; while (scanf("%d", &n) != EOF) { for (int i = 0; i < n; i...
2024-08-30
1
68
题解 | #最高分与最低分之差#
#include <stdio.h> int main() { int n; int a[10000]; int max = 0 , min = 100; scanf("%d",&n); for (int i = 0; ...
2024-08-30
1
76
题解 | #菱形图案#
#include <stdio.h> int main() { int n; while (scanf("%d", &n) != EOF) { for(int i = 0;i <= n;i++){ ...
2024-08-26
0
78
题解 | #公务员面试#
#include <stdio.h> int main() { int a[7] = {0}; int i = 0; int temp = 0; while (scanf("%d%d%d%d%d%d%d", &a[0], &am...
2024-08-26
0
71
题解 | #回文对称数#
#include <stdio.h> int main() { int n = 0; scanf("%d", &n); //int x = 0;//回文数---》对称相等 for (int i = 1; i <= n; i...
2024-08-26
0
67
题解 | #反向输出一个四位数#
#include <stdio.h> int main() { int n; scanf("%d",&n); while (n>0) { printf("%d",n%10); n...
2024-08-26
0
71
题解 | #小乐乐算多少人被请家长#
#include <stdio.h> int main() { int n = 0; int a = 0,b = 0,c = 0; int count=0; scanf("%d",&n); while (scanf(&q...
2024-08-25
1
57
题解 | #数位之和#
#include <stdio.h> int main() { //求一个整数的所有数位之和 int n = 0; scanf("%d",&n); int sum = 0; while (n>0) { ...
2024-08-25
1
77
题解 | #水仙花数#
#include <stdio.h> int main() { int m = 0, n = 0; int a = 0, b = 0, c = 0; //个十百 int count = 0; while (scanf("%d %d",...
2024-08-24
1
65
题解 | #KiKi求质数个数#
#include <stdio.h> int main() { //经典题目:求1~20的质数 int n = 0;//设有n个质数 for (int i = 100; i <=999; i++) { for (int j = 2; j &l...
2024-08-24
0
85
首页
上一页
1
2
3
4
5
下一页
末页