Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
81185 sh25_zhuwy 求n的值 C++ 通过 0 MS 244 KB 222 2026-01-04 15:41:03

Tests(1/1):


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


测评信息: