大遗圣音 @ 2019-11-05 18:22:22
k = int(input('K=')) n = 1 sn = 1/n while sn<=k: n=n+1 sn=sn+1/n
print(n)
by 大遗圣音 @ 2019-11-05 18:23:12
k = int(input('K='))
n = 1
sn = 1/n
while sn<=k:
n=n+1
sn=sn+1/n
print(n)
by SJC_03 @ 2019-11-05 18:24:06
@大遗圣音 不需要输出"K="
by Туполев @ 2019-11-05 18:36:03
希望更丰富的展现?使用Markdown
by JasonZRY @ 2019-11-05 18:45:32
@Туполев
希望更丰富的展现?使用Markdown
by Туполев @ 2019-11-05 18:48:04
@JasonZRY 原本是想写成
希更展,用MD
的