Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
76763 sh25_chenyj 求n的值 C++ 解答错误 0 MS 244 KB 323 2025-12-19 17:39:09

Tests(0/1):


#include<bits/stdc++.h> using namespace std; int main() { int m; cin>>m; int n = 1; while(1){ int a = 0; for(int i = 1; i <= n; i++){ a += i; } if(a > m){ cout<<n; break; } n ++; return 0; } }


测评信息: