| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 81411 | sh25_zhangyy | 金币 | C++ | Accepted | 0 MS | 240 KB | 218 | 2026-01-04 18:04:22 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,d=0,m; cin>>n; while(d*(d+1)<=2*n){ d++; }d--; m=d*(d+1)*(2*d+1)/6+(d+1)*(n-d*(d+1)/2); cout<<m; return 0; }