Codey and Pebbles
https://www.hackerrank.com/contests/codenection-2024-preliminary-round-closed-category/challenges/cn24-5
Last updated
https://www.hackerrank.com/contests/codenection-2024-preliminary-round-closed-category/challenges/cn24-5
Last updated
6
2 4 10 17 8 204t = int(input().strip())
n = list(map(int, input().strip().split()))
check_binary = [i % 2 for i in n]
unique_check = 0
if (check_binary.count(1) == 1):
unique_check = 1
for idx, val in enumerate(check_binary):
if val == unique_check:
print(idx + 1)