Result

AC

Code [DL]

loop{p ((8*gets.to_i(2)+1)**0.5-1)/2%1==0 ?1:0}

stdin

01001110
11101010
00000001
10011110
00001111
11111101
00001010
00011011
11010111
00000001
10111001
11011000
11010101
10001000
00101101
01000100
10111110
00100100
00000011
01101101
01111000
01000010
00011100
11110100
00000110
00110111
10011001
10010010
10110110
10101011
11100010
10110001
01001001
11011111
00100111
10111110
01011001
00100011
11010010
01011011
11110110
01010000
11100111
01101001
10010111
10101100
00000000
10100100
00010101
00001000

stdout

1
0
1
0
1
1
1
0
0
1
0
0
0
1
1
0
1
1
1
0
1
1
1
0
1
1
1
0
0
1
0
0
0
0
0
1
0
0
1
1
0
0
1
1
0
0
1
0
1
0

stderr

/volume/CODE:1:in `to_i': wrong number of arguments (given 1, expected 0) (ArgumentError)
	from /volume/CODE:1:in `block in <main>'
	from /volume/CODE:1:in `loop'
	from /volume/CODE:1:in `<main>'

strace