| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 83374 | sh25_shengmy | 求n的值 | C++ | Accepted | 0 MS | 244 KB | 187 | 2026-01-25 19:22:23 |
#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; }