Run ID:87297

提交时间:2024-08-08 14:26:45

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