본문 바로가기
python-algorithm

[백준] 16515

by 무적김두칠 2021. 1. 18.

1
2
3
4
5
import math
cnt=0
for i in range (int(input())+1):
    cnt+=1/math.factorial(i)
print(cnt)
cs
반응형

'python-algorithm' 카테고리의 다른 글

[백준] 16676  (0) 2021.01.18
[백준] 16674  (0) 2021.01.18
[백준] 16497  (0) 2021.01.18
[백준] 16462  (0) 2021.01.18
[백준] 16396  (0) 2021.01.18

댓글