Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
325296 顾子丞 【C2-4】购买礼物 C++ 编译错误 0 0 MS 0 KB 178 2025-06-05 16:27:55

Tests(0/0):


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


测评信息: