Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
440433 王璟源 【C2-4】购买礼物 C++ 通过 100 1 MS 244 KB 162 2026-05-13 19:00:09

Tests(2/2):


#include<iostream> using namespace std; int main(){ int n,x=0,t=1,cnt=0; cin>>n; while(n>x){ cnt++; x=x+t; t++; } cout<<cnt; return 0; }


测评信息: