OJ-Problems-Source/HDOJ/2520_autoAC.cpp

12 lines
181 B
C++
Raw Normal View History

#include<stdio.h>
int main ()
{
int T, n;
for(scanf("%d", &T); T; T--)
{
scanf("%d", &n);
printf("%d\n", n * n %10000);
}
return 0;
}