-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathe286.py
More file actions
42 lines (38 loc) · 957 Bytes
/
e286.py
File metadata and controls
42 lines (38 loc) · 957 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Apr 6 19:53:44 2019
@author: sam0225
"""
score = [0] * 4
for i in range(4):
score[i] = sum(map(int, input().split()))
print(str(score[0]) + ":" + str(score[1]))
print(str(score[2]) + ":" + str(score[3]))
if score[0] > score[1] and score[2] > score[3]:
print("Win")
elif not score[0] > score[1] and not score[2] > score[3]:
print("Lose")
else:
print("Tie")
#
# sumA = sumB = 0
# first = True
# second = True
# for i in range(4):
# a, b, c, d = map(int, input().split())
# if i % 2:
# sumB = a + b + c + d
# print(str(sumA)+":"+str(sumB))
# if i == 1:
# first = True if sumA > sumB else False
# else:
# second = True if sumA > sumB else False
# else:
# sumA = a + b + c + d
# if first and second:
# print("Win")
# elif not first and not second:
# print("Lose")
# else:
# print("Tie")