e286.
籃球比賽
--
APCS
| From: [163.20.211.241] |
發表日期
:
2024-05-17 19:01
a,b,c,d = map(int,input().split())
num1 = a+b+c+d
e,f,g,h = map(int,input().split())
num2 = e+f+g+h
i,j,k,l = map(int,input().split())
num3 = i+j+k+l
m,n,o,p = map(int,input().split())
num4 = m+n+o+p
print(str(num1) + ':' + str(num2))
print(str(num3) + ':' + str(num4))
if num1 == num2:
if num3 > num4:
print('Win')
elif num3 < num4:
print('Lose')
elif num3 == num4:
print('Tie')
elif num1 > num2:
if num3 > num4:
print('Win')
elif num3 < num4:
print('Tie')
elif num3 == num4:
print('Win')
elif num1 < num2:
if num3 > num4:
print('Tie')
elif num3 < num4:
print('Lose')
elif num3 == num4:
print('Lose')
有點太龐大了