a, b = input().split() c, d = input().split() e, f = input().split() k, l = input().split() n = a + c + e + k p = b + d + f + l if n == p: print('DRAW') elif p < n: print('1') else: print('2')
a, b = input().split() c, d = input().split() e, f = input().split() k, l = input().split() n = a + c + e + k p = b + d + f + l if n == p: print('DRAW') elif p < n: print('1') else: print('2')
1 1
2 2
3 3
4 4
DRAW
FishHookИмею ввиду, если после сложения числа одинаковые, по все равно показывает что одно число больше другого.
В каком месте?
1 1будут одинаковые, ответ верный. Что не так?
2 2
3 3
4 4
FishHookШас покажу что нет так
Блин, вот эти вот числа после сложения
smirnov@smirnov-N550JV:~$ python3
Python 3.4.3+ (default, Oct 14 2015, 16:03:50)
[GCC 5.2.1 20151010] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> x = input()
34
>>> type(x)
<class 'str'>
>>>
a =[] b =[] for i in range(4): t1, t2 = map(int, input().split()) a.append(t1) b.append(t2) print('1' if sum(a) > sum(b) else '2' if sum(a) < sum(b) else 'DRAW')