标签:
Time Limit: 1000/500 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 342001 Accepted Submission(s): 86236
#include<iostream> using namespace std; int main(){ int a,b,c; while(cin>>a){ c=0; for(b=1;b<=a;b++) c+=b; cout<<c<<endl<<endl; } return 0; }
标签:
原文地址:http://www.cnblogs.com/wabi87547568/p/4687730.html