吃葡萄不爱吐葡萄皮
吃葡萄不爱吐葡萄皮
全部文章
分类
归档
标签
去牛客网
登录
/
注册
吃葡萄不爱吐葡萄皮的博客
全部文章
(共8篇)
题解 | #成绩排序#
#include <stdio.h> typedef struct score{ int id; int grade; }SCORE; int main() { int n; scanf("%d",&n); SCOR...
2024-03-24
0
150
题解 | #最大序列和#
#include <stdio.h> int main() { int n; while(scanf("%d",&n)!=EOF){ double *p=(double *)malloc(sizeof(double)*n); ...
2024-03-23
0
151
题解 | #数字阶梯求和#
#include <stdio.h> int main() { int a,n; scanf("%d %d",&a,&n); int temp_a[200]={0},sum[200]={0},top,c; for(in...
2024-03-22
1
180
题解 | #与7无关的数#
#include <stdio.h> int main() { int x,sum,flag,y; scanf("%d",&x); sum=0; for(int i=1;i<=x;i++){ flag=0...
2024-03-22
0
159
题解 | #递推数列#
#include <stdio.h> int main() { int a0,a1,p,q,k; scanf("%d %d %d %d %d",&a0,&a1,&p,&q,&k); int temp; ...
2024-03-21
0
156
题解 | #首字母大写#
#include <stdio.h> #include <string.h> int main() { char s[100]={0}; int i,count; while(gets(s)){ i=0; if(s[0]...
2024-03-21
0
126
题解 | #成绩排序#
#include <stdio.h> typedef struct score{ char name[10]; int score; } SCORE; void SelectionSort(SCORE *p,int n,int (*compare)(int a,int ...
2024-03-21
0
188
题解 | #质因数的个数#
#include <stdio.h> #include <math.h> int IsPrime(int n); int main(){ int x,count; while(scanf("%d",&x)!=EOF){ ...
2024-03-21
1
249