Result

AC

Code [DL]

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

stdin

11111101
10101011
01001110
11000111
00101101
01011011
00011100
01000110
00000110
10100010
01110000
01110100
00100100
01111000
11001000
00110110
01100101
10111110
10001000
10011001
00001111
00010101
11010010
00010111
01000001
00000001
01101010
10001011
01001111
11011011
10101100
11011001
00110111
00001111
01010010
00000010
01101001
00000011
01000010
01101011
00001010
00000000
00000101
00101001
00010101
00011000
11010111
00101100
00110100
11100111

stdout

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

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