''' a = int(input()) b = int(input()) c = int(input()) d = int(input()) e = int(input()) d1 = d2 = 0 if a==1: d1 = d1 + 1 else: d2 = d2 + 1 if b==1: d1 = d1 + 1 else: d2 = d2 + 1 if c==1: d1 = d1 + 1 else: d2 = d2 + 1 if d==1: d1 = d1 + 1 else: d2 = d2 + 1 if e==1: d1 = d1 + 1 else: d2 = d2 + 1 if d1>d2: print(1) else: print(2) '''
''' for i in range(5): s = int(input()) if s==1: d1 = d1 + 1 else d2 = d2 + 1 if d1>d2: print(1) else: print(2) '''
a = [] for i in range(5): s = int(input()) a.append(s) d1 = a.count(1) d2 = a.count(2) if d1>d2: print(1) else: print(2)
.
Bình luận
''' a = int(input()) b = int(input()) c = int(input()) d = int(input()) e = int(input()) d1 = d2 = 0 if a==1: d1 = d1 + 1 else: d2 = d2 + 1 if b==1: d1 = d1 + 1 else: d2 = d2 + 1 if c==1: d1 = d1 + 1 else: d2 = d2 + 1 if d==1: d1 = d1 + 1 else: d2 = d2 + 1 if e==1: d1 = d1 + 1 else: d2 = d2 + 1 if d1>d2: print(1) else: print(2) '''
''' for i in range(5): s = int(input()) if s==1: d1 = d1 + 1 else d2 = d2 + 1 if d1>d2: print(1) else: print(2) '''
a = [] for i in range(5): s = int(input()) a.append(s) d1 = a.count(1) d2 = a.count(2) if d1>d2: print(1) else: print(2)
.