标签:hdoj for lan std while pac integer bsp 直接
Time Limit: 1000/500 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 487269 Accepted Submission(s):
123725
1 #include<stdio.h> 2 #include<cmath> 3 #include<iostream> 4 #include<cstring> 5 #include<algorithm> 6 #include<queue> 7 using namespace std; 8 int main () 9 { 10 long int n,i,sum; 11 while(scanf("%ld",&n)!=EOF) 12 { 13 sum=0; 14 for(i=1;i<=n;i++) 15 { 16 sum+=i; 17 } 18 printf("%ld\n",sum); 19 printf("\n"); 20 } 21 return 0; 22 }
标签:hdoj for lan std while pac integer bsp 直接
原文地址:http://www.cnblogs.com/52why/p/7478027.html