Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
128493 陈志轩 奖励积分 C++ 通过 100 0 MS 236 KB 199 2024-01-25 17:25:41

Tests(1/1):


#include<bits/stdc++.h> #define int long long using namespace std; signed main(){ int n,sum = 0,cnt = 1; cin>>n; while (sum < n){ sum += cnt; cnt++; } cout<<cnt - 1; return 0; }


测评信息: