#include<bits/stdc++.h> using namespace std; int m,s,i; int main(){ cin>>m; for(i=1;s<=m;i++){ s+=i; } cout<<--i; return 0; }
使用您的 蒙青创OJ 通用账户