Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
149487 赖泓宇 15加到第几项 C++ Accepted 0 MS 260 KB 245 2026-03-13 18:48:45

Tests(1/1):


Code:

#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; }