wear @ 2019-10-27 10:13:04
using namespace std; int main() { int k, n = 1; double sn = 0.000; cin >> k; for (n; sn <= k; n++) sn += (1.000 / n); cout << n; return 0; }
by Kuriyama_Mirai @ 2019-10-27 10:17:23
我觉得吧,很多dalao的问题就出在,喜欢嘲讽蒟蒻
by 0nullptr @ 2019-10-27 10:20:00
很多dalao的问题是看不懂没有Markdown的代码
by kjhhjki @ 2019-10-27 10:23:24
希望更丰富的展现?使用Markdown
by 诱宵美⑨ @ 2019-10-27 10:24:28
希丰展?使MD
by chzhc @ 2019-10-27 10:31:35
#include <iostream>
using namespace std;
int main() {
int k, n = 1;
double sn = 0.000;
cin >> k;
for (n; sn <= k; n++) sn += (1.000 / n);
cout << n;
return 0;
}
by chzhc @ 2019-10-27 10:31:55
(我太善良了
by He_Ren @ 2019-10-27 10:51:03
我怎么知道dalao哪里有问题