wangshuheng3541 @ 2017-06-25 11:28:09
#include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;
int main()
{
int k,n=0,sum=0;
cin>>k;
for(int d=1;d<=k;d++)
{
int y=d;
if(y+n==d)
{
y=d;
n++;
}
sum+=n;
}
cout<<k<<endl;
return 0;
}
by mydiplomacy @ 2017-07-21 13:28:48
仔细读题,你题意理解有误