Run ID:148193
提交时间:2026-02-09 20:55:17
#include<iostream> using namespace std; const int MOD = 10000; int main(){ int T; cin>>T; while(T--){ long long n; cin>>n; long long res = n*n; cout<<res%MOD<<endl; } return 0; }