Run ID:73533
提交时间:2024-05-19 12:40:08
#include <bits/stdc++.h> using namespace std; int main () { int n=1; int s=0; while(s<=1000){ s+=n; n++; } cout<<n-1; return 0; }