Result

AC

Code [DL]

using System;class _{static void Main(){for(int i=0;i++<50;Console.Write(Math.Sqrt(1+8*Convert.ToByte(Console.ReadLine(),2))%1>0?0:1));}}

stdin

01101001
00100110
11100101
10101010
11000110
11100000
00000001
01000010
10011010
10001110
10100110
00101110
10110011
00000011
10011100
10101011
00000001
00001010
00000000
10001000
00010101
00001111
01011011
01010000
01110110
11001011
00000110
11111001
10001011
10000001
11011100
00000000
00011100
11010010
11100011
01111100
10011001
01111000
00100100
00110111
10110111
11000100
00101101
11111101
10110100
01001110
00011111
11100111
10111110
00010000

stdout

10000011000001011111111000100001110011110011010110

stderr

strace