已解决 张百川 新手光能 #include<iostream> #include<cstdio> #include<cmath> using namespace std; int main() { int a,n=0,s=1; cin>>a; while(n<=a) { s+=2; n+=s; } cout<<s; return 0; }