zhutingxi @ 2023-02-26 15:45:29
题目读不懂!!!!!!!!!!!!!!!!!!!!帮助帮助
by da_ke @ 2023-02-26 17:08:06
'''
Description: 蒟蒻代码一份,有误大佬指导...k=int(input()),s
Version:
Author: vector1024
Date: 2023-02-26 17:05:22
LastEditors: vector1024
LastEditTime: 2023-02-26 17:07:05
'''
k=int(input())
s=0.0
i=1
while(s<=k):
s+=1.0/i
i=i+1
print(i-1)
仅供参考
by da_ke @ 2023-02-26 17:08:47
@zhutingxi 如上