r1 = list(map(int, input().split(' '))) r2 = list(map(int, input().split(' '))) c1 = [0 for _ in range(11)] c2 = [0 for _ in range(11)] s1 = 0 s2 = 0 for x, y in zip(r1, r2): s1 += x s2 += y c1[x] += 1 c2[y] += 1 w = 'remis' if s1 > s2: w = 'Algosia' if s2 > s1: w = 'Bajtek' if s1 == s2: for x, y in zip(c1[::-1], c2[::-1]): if x > y: w = 'Algosia' break if y > x: w = 'Bajtek' break print(w)
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 | r1 = list(map(int, input().split(' '))) r2 = list(map(int, input().split(' '))) c1 = [0 for _ in range(11)] c2 = [0 for _ in range(11)] s1 = 0 s2 = 0 for x, y in zip(r1, r2): s1 += x s2 += y c1[x] += 1 c2[y] += 1 w = 'remis' if s1 > s2: w = 'Algosia' if s2 > s1: w = 'Bajtek' if s1 == s2: for x, y in zip(c1[::-1], c2[::-1]): if x > y: w = 'Algosia' break if y > x: w = 'Bajtek' break print(w) |