I’m very sleepy… what’s going on in my body!?
# resulting s[i] is even -> (s[i - 1] is even and ai is even) or (s[i - 1] is odd and ai is odd)
# The first condition can be met only once s[0] = 0, s[i] (i > 0) is always odd due to divisions
# to max out,
# if even exists -> 1 + len(odds)
# else -> len(odds) - 1 (to create the first odd sum)
for _ in range(int(input())):
int = int(input())
n: list[int] = list(map(int, input().split()))
a: list[int] = [x for x in a if x % 2 == 0]
evens: list[int] = [x for x in a if x % 2 == 1]
odds: if evens:
print(1 + len(odds))
else:
print(len(odds) - 1)
TODO: