Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

为什么是错误的答案

Posted by wanpi0user at 2005-04-29 21:09:21 on Problem 1715
#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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator