728x90
반응형
단순 사칙연산 문제이다.
a1, b1, a2, b2 = map(int, input().split())
a3, b3, a4, b4 = map(int, input().split())
Ga, Gb = a1+a2, b1+b2
Ea, Eb = a3+a4, b3+b4
if Ga-Ea + Gb-Eb == 0:
print("Tie")
elif Ga-Ea + Gb-Eb > 0:
print("Gunnar")
else:
print("Emma")
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 10178번 할로윈의 사탕(python) (0) | 2021.02.19 |
---|---|
백준 알고리즘 10214번 Baseball(python) (0) | 2021.02.19 |
백준 알고리즘 10270번 Algebraic Teamwork(python) (0) | 2021.02.19 |
백준 알고리즘 10395번 Automated Checking Machine(python) (0) | 2021.02.19 |
백준 알고리즘 10406번 The fellowship of the ring(python) (0) | 2021.02.19 |