Ykqccc @ 2020-09-24 23:05:30
#include<stdio.h>
int mian()
{
int K,i,sum=0;
scanf("%d",&K);
for(i=1;i<=K;i++)
{
if(K>=i)
{
K=K-i;
sum+=i*i;
}
else
break;
}
sum+=K*i;
printf("%d",sum);
return 0;
}
by Forever1507 @ 2020-09-24 23:06:49
int mian()???是int main()......
by 陶潜2006 @ 2020-09-25 10:04:43
int main吧......