Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
325297 顾子丞 【C2-4】购买礼物 C++ 通过 100 1 MS 244 KB 176 2025-06-05 16:29:57

Tests(2/2):


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


测评信息: