算法
长按shift加速
这个作者很懒,什么都没留下…
展开
-
pat 1002 写出这个数
#include<stdio.h> int main(){ char a[31]; if(scanf("%s",a)){}; int c=0; int n=strlen(a); int i=0; char b[10][5]={"yi","er","san","si","wu","liu","qi","ba","jiu"}; for(i=0;i<n;i++){ c+=a[i]-'0'; }; if(1==c/100%10){ printf("%s ",b[0]原创 2021-06-08 20:55:14 · 182 阅读 · 0 评论 -
pat 乙级 1004成绩排名
# include <stdio.h> # include <string.h> struct STU { char name[10]; char usname[10]; int num; }; int main() { struct STU stu[5]; int n; int i; int max; int min; int a; int b; printf("请输入学生个数:"); if(scanf("%d",&n)){}; fo原创 2021-06-01 22:00:28 · 186 阅读 · 0 评论