Result

WA

Code [DL]

for i in {0..49};do read j;k=0;y=1;for x in {0..7};do if [ ${j:$[7-$x]:1} = 1 ];then k=$[$k+$y];fi;y=$[2 * $y];done;for x in {0..22};do k=$[$k-$x];if [ 0 -eq $k ];then echo 1;break;elif [ $x -lt 0 ];then echo 0;fi;done;done

stdin

11011011
01000100
01011011
11111101
01001110
00000000
00000110
01010010
10010010
10111100
00110111
00101101
10001000
11000110
00100100
10000001
11110000
00011001
00011101
10011001
01100100
11000001
10111110
00011100
10001010
10111111
01101001
10101011
10110011
01111000
10101011
11111100
00000110
00001111
01000010
01011101
11010010
00000001
00001100
01011100
00010101
10001100
10001001
11100111
01000011
00110100
00001010
01101111
00111000
00000011

stdout

1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1

stderr

/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)

strace