标签:log ram space cep field rip min 链接 ssi
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 10445 Accepted Submission(s): 6041
1 #include <bits/stdc++.h> 2 using namespace std; 3 int main() 4 { 5 int n,t; 6 int v0=1,v; 7 int s; 8 while(cin>>n) 9 { 10 while(n--) 11 { 12 cin>>t; 13 v=v0+2*(t-1); 14 s=((v+v0)*t/2)%10000; 15 cout<<s<<endl; 16 } 17 } 18 return 0; 19 }
标签:log ram space cep field rip min 链接 ssi
原文地址:http://www.cnblogs.com/ECJTUACM-873284962/p/6391129.html