Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
140001 李昱龙 15加到第几项 C++ Accepted 0 MS 264 KB 192 2025-12-13 14:10:07

Tests(1/1):


Code:

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