Run ID:5991

提交时间:2024-12-28 09:12:26

#include<iostream> // cin\cout\endl using namespace std; int main(){ int s=0,n=1; while(s<=1000){ s+=n; n++; } cout<<n-1<<endl; return 0; }