Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
3227 D班-汤依宁 1加到多少才超过N C++ 通过 100 0 MS 272 KB 148 2024-12-22 17:12:35

Tests(5/5):


#include <bits/stdc++.h> using namespace std; int main() { int a=1,sum=0,b; cin>>b; for(;sum<=b;a+=1) { sum=sum+a; } cout<<a-1; }


测评信息: