Михаил Успенский 616 ВМК МГУ HalfMore 493
Лазарев Артур Дмитриевич 514 HalfMore 2585
n1majority_element = Nonen1majority = None
2count = 02count = 0
3while True:3while True:
4    line = input().strip()4    line = input().strip()
5    if not line:5    if not line:
6        break6        break
7    if count == 0:7    if count == 0:
n8        majority_element = linen8        majority = line
9        count = 19        count = 1
n10    elif line == majority_element:n10    elif line == majority:
11        count += 111        count += 1
12    else:12    else:
13        count -= 113        count -= 1
t14print(eval(majority_element))t14print(eval(majority))
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op