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
北京大学《ACM/ICPC大学生程序设计竞赛训练》暑期课面向全球招生!

这样应该差不多了

Posted by tzkq at 2010-07-14 02:46:44 on Problem 2603
In Reply To:Re:你的代码好挤,而且有废话.帮你改了改 Posted by:zjut020 at 2008-11-11 22:56:52
int i,j,t,s[10005];
main() {
	for(i=10;i--;){
		scanf("%d",&t);
		for(j=2;1<t;j++)
			for(;t%j==0;t/=j)
				s[j]++;
	}
	for(t=i=1;i<9999;i++)
		t=t*(s[i]+1)%10;
	printf("%d",t);
}

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