Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
442851 沈子钰 【C3-9】金币 C++ 通过 100 6 MS 240 KB 222 2026-05-30 16:05:26

Tests(10/10):


#include<bits/stdc++.h> using namespace std; int main(){ int k,s=0,n=0,i; cin>>k; while(1){ n++; for(i=1;i<=n;i++){ s+=n; k--; if(k==0){ cout<<s; return 0; } } } }


测评信息: