LED recognition by Chiether

<?$z=array(235=>0,3=>1,122=>2,59=>3,147=>4,185=>5,249=>6,35=>7,251=>8,179=>9);while($a=fgets(STDIN).fgets(STDIN).fgets(STDIN)){list($A,$B,$C,$D)=explode("
",$a);$n=$Z="";while($A[$n]){$Z.=$z[bindec(str_replace(array(" ","|","_"),array(0,1,1),$A[$n].$B[$n].$C[$n++].$A[$n].$B[$n].$C[$n++].$A[$n].$B[$n].$C[$n++]))];}echo"$Z
";}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page