Skip to content

Instantly share code, notes, and snippets.

@lawrencefmm
Created April 24, 2019 14:12
Show Gist options
  • Save lawrencefmm/b16717047a59c6c50a00694ffd394374 to your computer and use it in GitHub Desktop.
Save lawrencefmm/b16717047a59c6c50a00694ffd394374 to your computer and use it in GitHub Desktop.
t = int(input())
for i in range(t):
n = int(input())
if n % 2:
print(1)
else:
print(0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment