Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
为什么是错误的答案#include<stdio.h> int main(){ int a[16],j,m,i,t,k; int b[8]={32432400,2162160,154440,11880,990,90,9,1}; while(1){ for(i=0;i<16;i++){a[i]=15-i;} scanf("%d",&m); if(m>486486000||m<1) break; --m; i=0; while(i<8){ t=m/b[i];k=0;j=0; while(a[j]==20) j++; while(k++<t){ while(a[++j]==20); } printf("%X",a[j]); a[j]=20; m%=b[i++]; } printf("\n"); } return 0; } 谁可以告诉我,这个程序为什么是错误的答案。 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator