Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
83374 sh25_shengmy 求n的值 C++ 通过 0 MS 244 KB 187 2026-01-25 19:22:23

Tests(1/1):


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


测评信息: