1
2
3
4
5
6
7
8
|
p1,s1=map(int,input().split())
s2,p2=map(int,input().split())
if p1+p2 > s1+s2 :print("Persepolis")
elif p1+p2 < s1+s2 : print("Esteghlal")
else:
if s1 > p2:print("Esteghlal")
elif s1<p2 :print("Persepolis")
else: print("Penalty")
|
cs |
축구 경기에서 승자승 원칙 생각하시면 될 것같네요
반응형
'python-algorithm' 카테고리의 다른 글
[백준] 17009 (0) | 2021.03.08 |
---|---|
[백준] 16785 (0) | 2021.03.08 |
[백준] 16693 (0) | 2021.03.08 |
[백준] 16600 (0) | 2021.03.08 |
[백준] 16017 (0) | 2021.03.05 |
댓글