티스토리 뷰

algorithm/python ISEQ

[python]60Q - 14

bouble12 2020. 12. 27. 16:28
a = [0, 5000, 6000, 7000, 10000, 20000]
sum = 0
while (1):
    e, b, c = map(int, input().split())
    sum = a[e] + a[b] + a[c]
    if sum != 0:
        print(sum)
    else:
        break

'algorithm > python ISEQ' 카테고리의 다른 글

[python]60Q - 17  (0) 2020.12.28
[python]60Q - 15  (0) 2020.12.27
[python] 60Q - 13  (0) 2020.12.27
[python] 60Q - 8 홀짝홀짝  (0) 2020.10.31
[python] 60Q - 7번 큰수  (0) 2020.10.31
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/10   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
글 보관함