0
已解决
#include <bits/stdc++.h>
using namespace std;
int main()
{
int i=1,s=1,n;
cin>>n;
while(s<n)
{
s+=i;
i++;
}
cout<<i;
return 0;
}
