| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 71673 | sh25_wangsj | 金币 | C++ | Accepted | 0 MS | 240 KB | 272 | 2025-10-26 20:21:05 |
#include <iostream> using namespace std; int main() { int a,jb=0,b=1,c; cin>>a; int i=1; while(i<=a){ c=b*(b+1)*1.0/2; if(i>c){ b=b+1; } jb=jb+b; i=i+1; } cout<<jb; return 0; }