1、一 .1.第一季 10 题全(注:第五题问题已经解决 ,确认 AC!) #include int main() int a,b,sum; scanf(“%d%d“, sum=a+b; printf(“%dn“,sum); return 0; 2. #include #define PI 3.1415926 int main() double r,h,l,s,sq,vq,vz; scanf(“%lf%lf“, l=2*PI*r; s=PI*r*r; sq=4*PI*r*r; vq=4*PI*r*r*r/3; vz=s*h; printf(“%.2lfn%.2lfn%.2lfn%.2lfn%.2l
2、fn“,l,s,sq,vq,vz); return 0; 3.#include int main() int a,b,c; double d,e; scanf(“%d%d%d“, d=a+b+c; e=d/3; printf(“%lfn%lfn“,d,e); return 0; 4.#include int main() int a,b,c; scanf(“%d%d%d“, if(a int main() int i=0,j=0,k=1; char a6; while(ai=getchar()!=n) i+; for(;i0;i-) if(aj=ai-1) j+; continue; else k=0; break; if(k=1) printf(“yesn“); else printf(“non“); 6.#include int main() double a,c; scanf(“%lf“, switch(int)a/10) case 0:c=a*0.1;break; case 1:c=(a-10)*0.075+10*0.1;break; case 2: case 3:c=(a-20)*0.05+10*0.075+10*0.1;break; case 4: