by@__Hyoga
WA
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;s=0;for x in {0..22};do s=$[$s+$x];if [ $s -eq $k ];then echo 1;elif [ $x -eq 22 ];then echo 0;fi;done;done
00110011 01001100 11000010 01111000 11101111 01011011 11100111 10001000 00001100 01000010 00001010 00110010 11101000 10101011 11111001 10110110 01000101 00111110 00100100 00110111 10111110 00001111 10101110 00010101 00000000 00000000 01011010 11011100 00000110 00111111 00000001 11100000 00000100 11010010 01111111 10011100 11000011 00000011 10011001 10001010 00011100 01101001 11000000 10111100 10111001 01001110 01101001 10000101 11111101 00101101
0 0 0 1 0 0 1 0 1 0 1 0 0 1 0 1 0 0 0 1 0 0 0 0 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 0 1 0 0 1 0 0 0 1 0 0 0 0 1 0 1 0 0 1 0 1 0 0 0 0 1 0 1 0 0 1 1 0
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)