This commit is contained in:
BarsTiger
2021-10-15 12:46:53 +03:00
parent b9772007b3
commit 68fb5410ee
45 changed files with 729 additions and 16 deletions

View File

@@ -0,0 +1,18 @@
kolvo = int(input())
ludi = input().split()
devochek = 0
malchikov = 0
for i in ludi:
if i == "1":
malchikov += 1
elif i == "2":
devochek += 1
if malchikov < devochek:
print(malchikov)
else:
print(devochek)