by@kcz146
WA
572ms
r=0;gets.chars.map(&:to_i).each{|x|puts(r^=x)}
1001000100110011011111111010110001111011011100001010111011001100100001100001000111011010000100101100
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