Run ID:96556

提交时间:2024-11-09 11:17:59

#include<iostream> using namespace std; int main(){ int n,s; for(n=1;s<1000;n++){ s=s+n; } cout<<n; }