sunjun940
sunjun940
全部文章
分类
归档
标签
去牛客网
登录
/
注册
sunjun940的博客
全部文章
(共44篇)
题解 | 找x
#include <stdio.h> int main() { int a, b[200],x,p=-1; while (scanf("%d", &a) != EOF) { // 注意 while 处理多个 case // 6...
2025-02-15
0
185
题解 | 打印极值点下标
#include <stdio.h> int main() { int b, a[80]; while (scanf("%d", &b) != EOF) { // 注意 while 处理多个 case for(int i=0;i...
2025-02-15
0
146
题解 | 小白鼠排队
#include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct { int weight; char color[11]; } Rat; int compare(...
2025-02-15
0
141
题解 | 数字之和
#include <stdio.h> int main() { long a,e,sum,c,sum1; while (scanf("%d", &a) != EOF) { // 注意 while 处理多个 case // 64...
2025-02-15
0
158
题解 | 找最小数
#include <stdio.h> int main() { int a[1000], b[1000], m; while (scanf("%d", &m) != EOF) { int min = 1001, minb =...
2025-02-15
1
177
题解 | 查找学生信息
#include <stdio.h> #include <string.h> typedef struct{ char xuehao[1000]; char name[200]; char gene[40]; int age; }student...
2025-02-15
1
148
题解 | 球的半径和体积
#include <math.h> #include <stdio.h> int main() { int a, b,c,d,e,f; double r,v; while (scanf("%d %d %d %d %d %d", &...
2025-02-14
3
140
题解 | 求最大值
#include <stdio.h> int main() { int a[10],ma=0; for(int i=0;i<=9;i++){ scanf("%d",&a[i]); if(ma<a[i]) ma=a[...
2025-02-14
1
119
题解 | 数字求和
#include <stdio.h> int main() { int a[5], b=0,c; while (scanf("%d", &c) != EOF) { // 注意 while 处理多个 case // 64 位输...
2025-02-14
0
104
题解 | 数字求和
#include <stdio.h> int main() { int a[4], b, sum; while (scanf("%d", &b) != EOF) { // 注意 while 处理多个 case // 64 位输出请用 printf(&...
2025-02-13
0
77
首页
上一页
1
2
3
4
5
下一页
末页