by@__Hyoga
AC
#!bin/sh 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;break;elif [ $x -eq 22 ];then echo 0;fi;done;done
10000000 11111101 00111000 10000010 00010101 00001111 00101101 00101001 00000000 01001000 01111011 00110010 01010110 01111000 01110111 01011110 00011000 10111010 10011001 00100100 01101001 01000000 11111100 11000111 00001111 11001011 01111111 00011001 10111110 00001010 01011011 00000011 01001110 11110100 01000010 10101110 10110011 00101000 00110111 11111101 10101011 11010010 00000001 11100111 11110111 00011100 11001010 00000110 10001000 00110101
0 1 0 0 1 1 1 0 1 0 0 0 0 1 0 0 0 0 1 1 1 0 0 0 1 0 0 0 1 1 1 1 1 0 1 0 0 0 1 1 1 1 1 1 0 1 0 1 1 0
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)