Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
128482 广州市第六中学实名上网关晓泽 奖励积分 C++ 通过 100 0 MS 236 KB 180 2024-01-25 17:23:23

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int m,ans,cnt=0,pos=1; int main(){ cin>>m; while(cnt<m){ ans++;; cnt+=pos; pos++; } cout<<ans<<endl; return 0; }


测评信息: