Result

WA

Duration

572ms

Code [DL]

r=0;gets.chars.map(&:to_i).each{|x|puts(r^=x)}

stdin

1001000100110011011111111010110001111011011100001010111011001100100001100001000111011010000100101100

stdout

1
1
1
0
0
0
0
1
1
1
0
1
1
1
0
1
1
0
1
0
1
0
1
0
1
1
0
0
1
0
0
0
0
1
0
1
0
0
1
0
0
1
0
1
1
1
1
1
0
0
1
1
0
1
0
0
1
0
0
0
1
0
0
0
1
1
1
1
1
0
1
1
1
1
1
0
0
0
0
1
0
1
1
0
1
1
0
0
0
0
0
1
1
1
0
0
1
0
0
0
0

stderr

strace