16727번 풀이 [Python]

sua·2022년 7월 11일
0

Baekjoon

목록 보기
80/161
post-thumbnail

문제


풀이

a, b = map(int, input().split())
c, d = map(int, input().split())
n = a + d
m = b + c
if n == m:
    if a == c:
        print("Penalty")
    elif a > c:
        print("Esteghlal")        
    else:
        print("Persepolis")
elif n > m:
    print("Persepolis")
else:
    print("Esteghlal")
profile
가보자고

0개의 댓글