Result

WA

Code [DL]

for i=0:49
	g=base2dec(fgetl(stdin),2);
	A=[0 1 3 6 10 15 21 28 36 45 55 66 78 91 105 120 136 153 171 190 210 231 253];
	disp(any(all(A==g)))
endfor

stdin

11110010
11010010
11001000
01011011
11100111
00000000
10011100
10110100
00000001
01101001
00100100
11101100
01101110
00000110
00011100
00000011
00110101
11010010
10110011
00101101
10000000
11011110
01100000
10111110
00111110
10011101
00110111
11111101
11101011
00010000
01001110
11010011
00010101
00111101
00001010
01111001
00101011
00011110
00010110
11010010
00001111
10011001
01000010
10101011
00100011
01111000
10010011
11001110
01000100
10001000

stdout

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0

stderr

octave: X11 DISPLAY environment variable not set
octave: disabling GUI features

strace