#21301: python 3


jerjer920813@gmail.com (YJ)

學校 : 國立政治大學附屬高級中學
編號 : 101106
來源 : [223.136.137.66]
最後登入時間 :
2020-05-16 09:00:54
e286. 籃球比賽 -- APCS | From: [223.136.137.66] | 發表日期 : 2020-05-13 20:47

first_home = list(map(int,input().split(" ")))
first_away = list(map(int,input().split(" ")))
second_home = list(map(int,input().split(" ")))
second_away = list(map(int,input().split(" ")))
h = 0
a = 0
print(f"{sum(first_home)}:{sum(first_away)}")
print(f"{sum(second_home)}:{sum(second_away)}")
if sum(first_home) > sum(first_away):
h += 1
else:
a += 1
if sum(second_home) > sum(second_away):
h += 1
else:
a += 1
if h > a:
print("Win")
elif h == a:
print("Tie")
else:
print("Lose")
 
ZeroJudge Forum