by@progrunner17
AC
while a=gets() c=a.to_i b=0 i=0 while i<8 r=c%10 c/=10 b+=r*(2**i) i+=1 end i=1 while b>0 b-=i i+=1 end if b==0 puts(1) else puts(0) end end
00000001 11010100 01100011 11010010 11111110 11101110 00001010 10001000 00010111 01010010 00010101 00101110 01111011 00000011 00011101 10001000 11111101 00011100 00101101 01110110 01010011 10111110 00101011 00000110 11100111 10011111 10111000 10000100 00110111 01101001 10011001 00000000 00001110 01000011 01010100 01011011 00100100 00100010 11001001 01101000 01001110 10101011 10010100 00001111 01111000 00111010 01010110 00011100 01000010 11011110
1 0 0 1 0 0 1 1 0 0 1 0 0 1 0 1 1 1 1 0 0 1 0 1 1 0 0 0 1 1 1 1 0 0 0 1 1 0 0 0 1 1 0 1 1 0 0 1 1 0