user_1 = input() user_2 = input() user_1 = user_1.split(" ") user_2 = user_2.split(" ") scores = { 0: [0, 0], 1: [0, 0], 2: [0, 0], 3: [0, 0], 4: [0, 0], 5: [0, 0], 6: [0, 0], 7: [0, 0], 8: [0, 0], 9: [0, 0], 10: [0, 0] } score_1 = 0 score_2 = 0 for value in user_1: scores[int(value)][0] += 1 score_1 += int(value) for value in user_2: scores[int(value)][1] += 1 score_2 += int(value) if score_1 > score_2: print("Algosia") elif score_1 < score_2: print("Bajtek") else: remis = True for i in range(10): j = 10 - i if scores[j][1] > scores[j][0]: print("Bajtek") remis = False break else: print("Algosia") remis = False break if remis: print("remis")
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 43 44 45 46 47 48 49 50 | user_1 = input() user_2 = input() user_1 = user_1.split(" ") user_2 = user_2.split(" ") scores = { 0: [0, 0], 1: [0, 0], 2: [0, 0], 3: [0, 0], 4: [0, 0], 5: [0, 0], 6: [0, 0], 7: [0, 0], 8: [0, 0], 9: [0, 0], 10: [0, 0] } score_1 = 0 score_2 = 0 for value in user_1: scores[int(value)][0] += 1 score_1 += int(value) for value in user_2: scores[int(value)][1] += 1 score_2 += int(value) if score_1 > score_2: print("Algosia") elif score_1 < score_2: print("Bajtek") else: remis = True for i in range(10): j = 10 - i if scores[j][1] > scores[j][0]: print("Bajtek") remis = False break else: print("Algosia") remis = False break if remis: print("remis") |