ac

ruirui  •  3天前


include<bits/stdc++.h>

using namespace std;

int main() {

int a;
int b = 0, x = 0;
cin >> a;
for (int c = 0; c <= a; c = c + b) {
    x++;
    b++;
}
cout << x;
return 0;

}


评论:

请先登录,才能进行评论