标签:
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 7894 Accepted Submission(s):
4631
#include<iostream> #include<cstdio> using namespace std; int main() { int t; scanf("%d",&t); while(t--) { int n,a1=1; scanf("%d",&n); int s=a1*n+n*(n-1); printf("%d\n",s%10000); } return 0; }
标签:
原文地址:http://www.cnblogs.com/cancangood/p/4761482.html