Konnyaku_q @ 2022-03-15 17:17:37
#include<cstdio>
#include<iostream>
using namespace std;
int main()
{
int c,b,a=0;
cin>>c;
for(b=1;c-b>=0;c-=b++)
{
c+=b*b;
}
cout<<c+a*b<<endl;
return 0;
}
by Susara @ 2022-09-27 21:41:12
排版有些问题,代码是可以过