Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
314194 tc242221景琦元 NOIP2015 普及:第一题 金币 C++ 通过 100 0 MS 272 KB 199 2024-12-12 17:11:27

Tests(10/10):


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


测评信息: