Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
335530 李俞家骅 【C2-4】购买礼物 C++ 通过 100 1 MS 244 KB 166 2025-07-23 10:58:21

Tests(2/2):


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


测评信息: