Result

AC

Code [DL]

<?php for($i=0;$i<50;$i++){$j=bindec(fgets(STDIN));$n=0;while(++$n<24)if($n*($n-1)==$j*2)break;echo $n==24?0:1;}?>

stdin

00010001
00100100
01010101
11001011
10111110
00000011
10001000
00001111
00110111
10100001
00100011
00000001
11010010
01001011
11100110
00000110
01101001
00011101
10011001
01011000
10101011
01000010
01011011
01010100
11000011
11100111
01001110
11110000
00101010
11111101
11001101
01111010
10011110
00000000
00010101
00101101
11111000
01111000
10101100
01100001
01101110
10111110
00011100
01101000
00001010
00100100
00011000
01100000
10111001
00100101

stdout

01001111100110011010111001100100011101000110110000

stderr

strace