Гущин Александр Евгеньевич, 622 HalfMore 1777 | Игорь Бобров, 428 группа HalfMore 925 | ||||
---|---|---|---|---|---|
n | 1 | counter = 0 | n | 1 | count = 0 |
2 | elem = None | 2 | half = '' | ||
3 | while (a := input()): | 3 | while (str := input()): | ||
4 | if counter == 0: | 4 | if count == 0: | ||
5 | elem = a | 5 | half = str | ||
6 | counter = 1 | 6 | count = 1 | ||
7 | elif a == elem: | 7 | elif half == str: | ||
8 | counter += 1 | 8 | count += 1 | ||
9 | else: | 9 | else: | ||
t | 10 | counter -= 1 | t | 10 | count -= 1 |
11 | print(eval(elem)) | 11 | print(eval(half)) |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|