提交时间:2026-05-13 19:00:09

运行 ID: 440433

#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; }