by@kcz146
WA
632ms
r=0;gets.chars.map(&:to_i).each{|x|puts(r^=x)}
1011010010000110001101111010001001111111011100101111100110011111000111000000111101101110111110001001
1 1 0 1 1 0 0 0 1 1 1 1 1 0 1 1 1 1 0 1 1 0 1 0 1 1 0 0 0 0 1 1 1 0 1 0 1 0 1 0 0 1 0 1 1 1 0 0 1 0 1 0 1 1 1 0 1 1 1 0 1 0 1 0 0 0 0 1 0 1 1 1 1 1 1 1 0 1 0 1 1 0 1 1 0 1 0 0 1 0 1 0 1 1 1 1 0 0 0 1 1