1
This commit is contained in:
22
levieProekti/Olymp2020/uoi/futbol.py
Normal file
22
levieProekti/Olymp2020/uoi/futbol.py
Normal file
@@ -0,0 +1,22 @@
|
||||
a, b = input().split()
|
||||
c, d = input().split()
|
||||
a = int(a)
|
||||
b = int(b)
|
||||
c = int(c)
|
||||
d = int(d)
|
||||
|
||||
peremig = "T"
|
||||
|
||||
if a + d > c + b:
|
||||
peremig = "U"
|
||||
|
||||
elif a + d < c + b:
|
||||
peremig = "P"
|
||||
|
||||
elif a + d == c + b:
|
||||
if d > b:
|
||||
peremig = "U"
|
||||
elif d < b:
|
||||
d > b
|
||||
|
||||
print(peremig)
|
||||
Reference in New Issue
Block a user