1305: Parity check
内存限制:512 MB
时间限制:2.000 S
评测方式:文本比较
命题人:
提交:111
解决:51
题目描述
Fascinated with the computer games, Gabriel even forgets to study. Now she needs to finish her homework, and there is an easy problem:
She is required to calculatef(n) mod2for each givenn. Can you help her?
输入
Multiple test cases. Each test case is an integern(0≤n≤101000)in a single line.
输出
For each test case, output the answer off(n)mod2.
样例输入复制
2
样例输出复制
1