Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
83463 sh25_huangse 求n的值 C++ 通过 0 MS 244 KB 197 2026-01-26 23:13:38

Tests(1/1):


#include<iostream> using namespace std; int main(){ int m; cin>>m; int s=0; int n=1; while(s<=m){ s=s+n; n=n+1; } cout<<n-1; return 0; }


测评信息: