Run ID:84286

提交时间:2024-07-15 14:55:34

#include<iostream> using namespace std; int main(){ int s = 0; int i = 0; while(s<=1000){ s = s + i; i++; } cout<<i<<endl; return 0; }