728x90
반응형
단순 구현 문제이다.
p1, s1 = map(int, input().split())
s2, p2 = map(int, input().split())
p = p1+p2
s = s1+s2
if p == s:
if p1 == s2:
print("Penalty")
elif p1 > s2:
print("Esteghlal")
else:
print("Persepolis")
elif p > s:
print("Persepolis")
else:
print("Esteghlal")
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 17009번 Winning Score(python) (0) | 2021.02.08 |
---|---|
백준 알고리즘 16785번 ソーシャルゲーム(python) (0) | 2021.02.08 |
백준 알고리즘 16693번 Pizza Deal(python) (0) | 2021.02.08 |
백준 알고리즘 16648번 Contemporary Art(python) (0) | 2021.02.08 |
백준 알고리즘 16600번 Contemporary Art(python) (0) | 2021.02.08 |