Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
325300 顾子丞 【C2-4】购买礼物 C++ Accepted 100 1 MS 256 KB 152 2025-06-05 16:43:13

Tests(2/2):


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


Judgement Protocol: