题解 | #牛牛学数列2#
牛牛学数列2
http://www.nowcoder.com/practice/fc72951f52984f3abd286d82eeffacba
a= int(input()) summ=0 if a ==0: print() else: for i in range(1,a+1): summ += 1/i print(f'{summ:.6f}')
牛牛学数列2
http://www.nowcoder.com/practice/fc72951f52984f3abd286d82eeffacba
a= int(input()) summ=0 if a ==0: print() else: for i in range(1,a+1): summ += 1/i print(f'{summ:.6f}')
相关推荐