Saturn_M200_CTEC @ 2022-01-17 21:04:46
#include<bits/stdc++.h>
using namespace std;
int n , sum , k = 1 , se;
int main() {
cin >> n;
while(sum >= n){
sum += 1 / k;
se = se + 1;
k = k + 1;
}
cout << se << endl;
return 0;
}
by yummy @ 2022-01-17 21:07:33
@AORYGJ 你想一想, int
合适吗?
by Saturn_M200_CTEC @ 2022-01-17 21:19:27
@yummy 谢谢,已经100分
by Saturn_M200_CTEC @ 2022-02-08 10:53:42
我怎么绿了