#!perl
$_=$t=pop;while($t>1){$_*=--$t}/(\d)0*$/;print"$1
"
|
#!perl -l
$_=1;for$i(1..pop){$_=$i*$_%1e7;s/0*$//}print$_%10
|
#!perl -l
$_=1;for$i(1..pop){$_*=$i;s/0*$//;$_%=1e6}print$_%10
|
#!perl -l
$_=1;for$i(1..pop){$_*=$i;($_)=/(.{0,5}?.)0*$/}/.$/;print$&
|
#!perl
$_=1;for$i(1..pop){$_*=$i;($_)=/(.{0,5}?.)0*$/}/(.)$/;print"$1
"
|
#!perl
$_=1;for$i(1..pop){$_*=$i;/(.{0,5}?.)0*$/;$_=$1}/(.)$/;print"$1
"
|
#!perl
$_=1;for$i(1..pop){$_*=$i;/(.{0,5}?.)0*$/;$_=$1}/(.)$/;print"$1
"
|
#!perl
$_=1;for$i(1..pop){$_*=$i;s/.*?(.{0,5}[1-9])0*$/$1/}/(.)$/;print"$1
"
|
#!perl
$t=pop;$_=1;for($i=1;$i<=$t;$i++){$_*=$i;s/.*?(.?.?.?.?.?[1-9])0*$/$1/}/(.)$/;print"$1
"
|
just trying to get on thee board after my last amazingly wrong, too good to be true submission. *&^%^%$
#!perl
$t=pop;$c=$_=1;for($i=1;$i<=$t;$i++){$_*=$i;$c*=$i;s/.*?(\d?\d?\d?\d?\d?\d?\d?[1-9])0*$/$1/}/(\d)$/;print"$1
"
|