[恢]hdu 2520
2011-12-15 14:28:07
地址:http://acm.hdu.edu.cn/showproblem.php?pid=2520
题意:中文。。。找规律,n^2。注意long long。
代码:
# include <stdio.h>
int main ()
{
long long n ;
scanf ("%I64d", &n) ;
while (~scanf ("%I64d", &n))
{
n = n*n % 10000 ;
printf ("%I64d\n", n) ;
}
return 0 ;
}