python-algorithm
[백준] 16727
무적김두칠
2021. 3. 8. 11:17
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 |
축구 경기에서 승자승 원칙 생각하시면 될 것같네요
반응형