hdoj1001【智障了。。。】

我不得不写这样一发,来提醒自己,本来是想在xixi面前1minAC,然后:

我没有用long long。
wa一发

他告诉我每个案例后都要再加一个空行,没看见PE一

#include<iostream>
#include<cstdio>
#include<math.h>
#include<queue>
#include<map>
#include<stdlib.h>
#include<string>
#include<string.h>
#include<algorithm>
using namespace std;
typedef long long LL;
#define PI acos(-1.0)

const int N=1e2+10;

int main()
{
    LL sum;
    LL n;
    while(~scanf("%lld",&n))
    {
        sum=(1+n)*n/2;
        cout<<sum<<endl<<endl;
    }
}
原文地址:https://www.cnblogs.com/keyboarder-zsq/p/5934467.html