Run ID:148192

提交时间:2026-02-09 20:47:21

#include<iostream> using namespace std; const int MOD = 1000; int main(){ int T; cin>>T; while(T--){ long long n; cin>>n; long long res = n*n; cout<<res%MOD<<endl; } return 0; }