Untitled
unknown
plain_text
2 years ago
264 B
11
Indexable
first = 0
counter = 0
while True:
qw = input()
if int(first) % 2 == 0 and int(qw) % 2 == 0 and ((int(qw) > 0 and int(first) > 0) or (int(qw) < 0 and int(first) < 0)):
break
else:
first = qw
counter += 1
print(counter-1)Editor is loading...
Leave a Comment