| ||||||||||
| 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 | |||||||||
这样应该差不多了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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator