by@progrunner17
WA
while a=gets() b=a.to_i 2 i=1 while b>0 b-=i i+=1 end b= b?1:0 puts b end
00001010 10010111 11100111 01101101 00000011 01001011 11110011 10001010 00010111 11111100 00101010 01000010 00000110 00100100 00000001 10001000 10111001 00100100 01101011 10111110 00011100 00011111 11101001 10111111 11010010 10000111 11001110 11010010 00110111 01110010 10011001 01101001 01111000 00101100 00101101 00001111 00100111 00010101 11111101 00011110 11101101 10011101 00000000 01100110 10101001 00110011 10101011 01001110 01011011 01110100
Syntax error in /volume/CODE:1: [1munexpected token: [0m while a=gets() [32;1m^[0m