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,23 @@
dlina = int(input())
chisla = input().split()
parnie = []
neparnie = []
for i in range(dlina):
if int(chisla[i]) // 2 == int(chisla[i]) / 2:
parnie.append(int(chisla[i]))
else:
neparnie.append(int(chisla[i]))
if len(parnie) > len(neparnie):
for u in range(dlina):
if int(chisla[u]) in neparnie:
print(u + 1)
else:
for u in range(dlina):
if int(chisla[u]) in parnie:
print(u + 1)