Run ID:149487

提交时间:2026-03-13 18:48:45

#include <iostream> using namespace std; int main() { int s = 0; int n = 0; while (true) { n++; s += n; if (s > 1000) { break; } } cout << n << endl; return 0; }