본문 바로가기
python-algorithm

[백준] 14579

by 무적김두칠 2020. 12. 29.

1
2
3
4
5
6
import sys
a,b= map(int,sys.stdin.readline().split())
start= int ((1+a)*a/2)
for i in range(a+1,b+1):
    start*= int ( (i*(1+i))/2)
print(start%14579)
cs
반응형

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

[백준] 14720  (0) 2021.01.04
[백준] 14656  (0) 2021.01.04
[백준] 14568  (0) 2020.12.29
[백준] 14489  (0) 2020.12.29
[백준] 13752  (0) 2020.12.29

댓글