标签:output tle blog task span integer hang res one
Time Limit: 1000/500 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 480655 Accepted Submission(s):
121603
#include <cstdio> int n; int main() { while(scanf("%d",&n)!=EOF) { if(n%2==1) printf("%d\n\n",(n/2)*(1+n)+(n/2)+1); else printf("%d\n\n",(n/2)*(1+n)); } }
标签:output tle blog task span integer hang res one
原文地址:http://www.cnblogs.com/ruojisun/p/7162023.html