摘要:
1 #include 2 3 int temp(int,int); 4 5 int main() 6 { 7 int n,m; 8 while(~scanf("%d%d",&n,&m)&&(n!=-1||m!=-1)) 9 { 10 int ans=temp(n,m); 11 if(ans==1) 12 ... 阅读全文
摘要:
1 #include 2 3 int main() 4 { 5 double ans,x; 6 int n=12; 7 while(n--) 8 { 9 scanf("%lf",&x); 10 ans+=x; 11 } 12 ans/=12; 13 printf("$%.2f\n",ans... 阅读全文
摘要:
1 #include 2 3 char s[300]; 4 5 int lenth(char s[]) 6 { 7 int i=0; 8 while(s[i]!='\0') 9 ++i; 10 return i; 11 } 12 int main() 13 { 14 int n,i,ans,len; 15 while(... 阅读全文
摘要:
1 #include 2 3 char s[300]; 4 5 int main() 6 { 7 int n,a,b; 8 char c; 9 double ans; 10 scanf("%d",&n); 11 getchar(); 12 while(n--) 13 { 14 ... 阅读全文
摘要:
1 #include 2 3 int jz(int x,int r,int temp) 4 { 5 int k=1,ans=0; 6 while(k <= x) 7 k*=r; 8 while(k!=1) 9 { 10 k/=r; 11 ans+=x/k%r; 12 } 13 if... 阅读全文
摘要:
1 #include 2 3 typedef struct 4 { 5 char num[6]; 6 char s[10]; 7 } cus; 8 9 cus xx[8]= {{"33","Zhejiang"},{"11","Beijing"}, 10 {"71","Taiwan"},{"81","Hong Kong"}, 11 ... 阅读全文