| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 27755 | 老师 | 金币 | C++ | Accepted | 100 | 0 MS | 244 KB | 188 | 2021-12-18 14:48:56 |
#include<bits/stdc++.h> using namespace std; int ans,n,d; int main(){ cin>>n; for(int i=1;d!=n;i++) for(int j=1;d!=n&&j<=i;j++){ d++,ans+=i; } cout<<ans; return 0; }