潘定坤 • 5天前
#include<bits/stdc++.h> using namespace std; int main() { int m; cin>>m; int s=0; int n=0; while(s<=m){ n++; s+=n; } cout<<n<<endl; return 0; }
评论: