by@progrunner17
AC
while a=gets() c=a.to_i b=0 i=0 while i<8 b+=(c%10)*(2**i) c/=10 i+=1 end i=1 while b>0 b-=i i+=1 end if b==0 puts 1 else puts 0 end end
00011011 10011001 00011110 11001001 00100110 00010101 00001100 01001011 11111101 00000000 10001011 01100100 00011111 01001100 00101101 10101011 01010010 11000010 01011001 01000111 00000001 01000010 00111101 10010011 10111110 11001000 11010010 01001001 00001010 01010001 00011100 10001000 01101001 11011111 01111001 00100100 11100111 10101011 00000011 00001111 01111000 01001110 10100100 01010000 01101111 00110111 10101011 00000110 01111010 01011011
0 1 0 0 0 1 0 0 1 1 0 0 0 0 1 1 0 0 0 0 1 1 0 0 1 0 1 0 1 0 1 1 1 0 0 1 1 1 1 1 1 1 0 0 0 1 1 1 0 1