mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
12 lines
181 B
C++
12 lines
181 B
C++
|
#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;
|
||
|
}
|