import numpy as np a = np.array(input().split(), int) b = np.array(input().split(), int) if (a.sum() > b.sum()): print("Algosia") elif (a.sum() < b.sum()): print("Bajtek") elif (np.sum(a == 10) > np.sum(b == 10)): print("Algosia") elif (np.sum(a == 10) < np.sum(b == 10)): print("Bajtek") elif (np.sum(a == 9) > np.sum(b == 9)): print("Algosia") elif (np.sum(a == 9) < np.sum(b == 9)): print("Bajtek") elif (np.sum(a == 8) > np.sum(b == 8)): print("Algosia") elif (np.sum(a == 8) < np.sum(b == 8)): print("Bajtek") elif (np.sum(a == 7) > np.sum(b == 7)): print("Algosia") elif (np.sum(a == 7) < np.sum(b == 7)): print("Bajtek") elif (np.sum(a == 6) > np.sum(b == 6)): print("Algosia") elif (np.sum(a == 6) < np.sum(b == 6)): print("Bajtek") elif (np.sum(a == 5) > np.sum(b == 5)): print("Algosia") elif (np.sum(a == 5) < np.sum(b == 5)): print("Bajtek") elif (np.sum(a == 4) > np.sum(b == 4)): print("Algosia") elif (np.sum(a == 4) < np.sum(b == 4)): print("Bajtek") elif (np.sum(a == 3) > np.sum(b == 3)): print("Algosia") elif (np.sum(a == 3) < np.sum(b == 3)): print("Bajtek") elif (np.sum(a == 2) > np.sum(b == 2)): print("Algosia") elif (np.sum(a == 2) < np.sum(b == 2)): print("Bajtek") elif (np.sum(a == 1) > np.sum(b == 1)): print("Algosia") elif (np.sum(a == 1) < np.sum(b == 1)): print("Bajtek") else: 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 51 | import numpy as np a = np.array(input().split(), int) b = np.array(input().split(), int) if (a.sum() > b.sum()): print("Algosia") elif (a.sum() < b.sum()): print("Bajtek") elif (np.sum(a == 10) > np.sum(b == 10)): print("Algosia") elif (np.sum(a == 10) < np.sum(b == 10)): print("Bajtek") elif (np.sum(a == 9) > np.sum(b == 9)): print("Algosia") elif (np.sum(a == 9) < np.sum(b == 9)): print("Bajtek") elif (np.sum(a == 8) > np.sum(b == 8)): print("Algosia") elif (np.sum(a == 8) < np.sum(b == 8)): print("Bajtek") elif (np.sum(a == 7) > np.sum(b == 7)): print("Algosia") elif (np.sum(a == 7) < np.sum(b == 7)): print("Bajtek") elif (np.sum(a == 6) > np.sum(b == 6)): print("Algosia") elif (np.sum(a == 6) < np.sum(b == 6)): print("Bajtek") elif (np.sum(a == 5) > np.sum(b == 5)): print("Algosia") elif (np.sum(a == 5) < np.sum(b == 5)): print("Bajtek") elif (np.sum(a == 4) > np.sum(b == 4)): print("Algosia") elif (np.sum(a == 4) < np.sum(b == 4)): print("Bajtek") elif (np.sum(a == 3) > np.sum(b == 3)): print("Algosia") elif (np.sum(a == 3) < np.sum(b == 3)): print("Bajtek") elif (np.sum(a == 2) > np.sum(b == 2)): print("Algosia") elif (np.sum(a == 2) < np.sum(b == 2)): print("Bajtek") elif (np.sum(a == 1) > np.sum(b == 1)): print("Algosia") elif (np.sum(a == 1) < np.sum(b == 1)): print("Bajtek") else: print("remis") |