Result

AC

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(A==g))
endfor

stdin

00000110
01011011
10101011
11011100
01001110
10010100
10001101
10101110
01000010
00000001
10011001
00010011
11010111
00011111
00010101
00100100
00100101
10011011
10111110
11100111
10001000
10110111
10010010
01101010
01111111
00000000
10000001
10111110
00010100
00011100
10001001
00001111
11110101
11111101
01111000
01101001
00000011
11011011
00011000
11010010
01010000
00001010
00110111
00101101
10000100
10010000
10011100
10001000
10100010
11111110

stdout

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

stderr

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

strace