#include<stdio.h>
int main(void)
{
int i, n, m, temp;
while(scanf("%d", &n) != EOF)
{
for(m=i=1; i<=n; ++i)
{
temp = i;
while(temp%10 == 0) temp /= 10;
m *= temp;
while(m%10 == 0) m /= 10;
m = m%100000;
}
printf("%5d -> %d\n", n, m%10);
}
return 0;
}
568 - Just the Facts
最新推荐文章于 2016-08-09 00:12:42 发布