본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 32306번 Basketball Score

by 현장 2024. 9. 17.

-Code

a1, b1, c1 = map(int, input().split())
a2, b2, c2 = map(int, input().split())

total1, total2 = a1 + b1 * 2 + c1 * 3, a2 + b2 * 2 + c2 * 3

if total1 > total2:
    print(1)
elif total1 < total2:
    print(2)
else:
    print(0)