Advertisement
Peaser

Untitled

May 16th, 2015
591
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 5.66 KB | None | 0 0
  1. $_  =q#( $.=" 20 2c4a 506 175"   )=~s  {[ \W] ?([ \w] )\s ?(\w ) }{ $
  2. |= 1 ; "0x$   1$2  ".( 5 - (++$  b)?   " ," :"..  " ) }xeg ;$ l=~ s {
  3.  \s}{ ;  ""}exg;@t=split //, "\44_  =q\43$_\43; s/\134\156//xg;  eval
  4. ".($"x2)."\43TSR'15";map{ $ a[$c /5] [$c++%5] =chr } eval $ .; do {$s
  5. += 1; my $ z; if ($t  [$s ] eq  $"){($ d++% 2 ?$x:  $ y )=$ s- $e;$e=
  6. $s+ 1;if( !($ d-2) ){$ d=0; push @j,$ a[$ x ][$ y] }   } }while@j-25;
  7. print  join $ /,  unpack ("( A69)*" , join"" ,@ t ), join "",$ /, (m
  8. ap{( "\43", @$_,$ /) }@ a),"\n\43 ",@j,$/;#; s/\n//xg;  eval  #TSR'15
  9. $m=250;for(2..$m){for($a=$_*2;$a<=$m;$a+=$_){$c[$a]++}print"$_,"x!$c[$_]}
  10. eval'[]->Jk',$^X=~m;(?:.*[\\/])?([^\W\d]+);;$==ord('?'^':'),$,=q**
  11. ,*_=[map+chr,$[..$=<<$=],*_={map{;$_,++$=}grep/(?=\W)[$"-~]/,@_},*
  12. _=sub{map{join$,,@_[@_{split$,,$_}]}+$,."->]'","!?;'(&}","(! .\\}"
  13. },*_=[_(split$,,$@),"\u$1"],*_=\"@_[$[,!!!$[,-!$[,$#_^!$[],",print
  14. $e=$k=$f=$a=$m=$n=1;@y=split//,"mpqeyn";$y=$p=$a+$m+$n;push@mn,pop@y;u
  15. +nshift@mn,shift@y;while($#p<14){$a++;@b=@p;&d}while($f>2**-$p[$#p]){$
  16. +i+=2;$r=$i%4;$f=4/($i*($i+1)*($i+2));$p+=$f*($r-1);if($i/2<$p[$p[4]])
  17. +{eval"\$$mn[$r/2]+=\$$mn[!$r]";$y=$y/2+1/$y;eval"\$q=\$$mn[$r/2]/\$$m
  18. +n[!$r]";$k*=($i/2);$e+=1/$k}}for$o(@y){print"<br>$$o"}sub d{while(@b)
  19. +{$x=!($a%shift@b);if($x){return}}push@p,$a;print"$a,"}
  20. @P=split//,".URRUU\c8R";@d=split//,"\nrekcah xinU / lreP rehtona tsuJ";sub p{
  21. @p{"r$p","u$p"}=(P,P);pipe"r$p","u$p";++$p;($q*=2)+=$f=!fork;map{$P=$P[$f^ord
  22. ($p{$_})&6];$p{$_}=/ ^$P/ix?$P:close$_}keys%p}p;p;p;p;p;map{$p{$_}=~/^[P.]/&&
  23. close$_}%p;wait until$?;map{/^r/&&<$_>}%p;$_=$d[$q];sleep rand(2)if/\S/;print"
  24. print ocr(<<TPJ);
  25. #  # # ## ##  ## ##  #    #  #  # # ##  #  #  #  #
  26. ### # # #  # # #  # # #    # # # # # # # ## # # # #
  27. #  ### ## ##  ## ##  #    # # # # # ##  # ## ### #
  28. #  # # #  #   #  # # #  # # # # # # # # #  # # # #
  29. #  # # ## #   ## # # ## ###  #  ### # # #  # # # ##
  30. TPJ
  31. sub ocr{@{$-[$@++]}=split$,for(split'\n',shift);for$@(0..4){for(0..51){++$_{$_
  32. }if($-[$@][$_]=~$")}}@&=(-1);for(sort{$a<=>$b}keys%_){push@&,$_ if($_{$_}>4)
  33.   }push@&,52;for$@(0..13){@{$|[$@][$_]}=@{$-[$_]}[$&[$@]+1..$&[$@+1]-1]for(0..
  34.    4)}for(@|){**=$_;$w=@{$*[$^=$$=0]}-1;for$@(0..4){for(1..$w){$^++if$*[$@][$_
  35.     ]ne$*[$@][$_-1]}}for(0..$w){for$@(1..4){$$++ if$*[$@][$_]ne$*[$@-1][$_]}}
  36.      for(0..20){push@},chr$_+65if(7*(8,4,2,9,2,3,7,8,1,$@,5,4,9,10,10,6,3,8,4,
  37.       8,8)[$_]+(5,8,3,3,4,2,1,2,8,2,7,1,5,4,6,$@,3,6,8,4,1)[$_]==7*$^+$$)}}@}}
  38. $_=q(s%(.*)%$_=qq(\$_=q($1),$1),print%e),s%(.*)%$_=qq(\$_=q($1),$1),print%e
  39. $F=0;$I[$D]=0;if($D!=$C){S(K)}for($G=0;$G<$C;$G++){U(substr($A,$I[$G],1))
  40. *S=sub{goto shift};*T=sub{exit shift};*U=sub{print shift};
  41. my $A="";my $C=0;my $D=0;my $E=0;my $F=0;my $G=0;my $H=0;my @I;
  42. if(!defined($A=$ARGV[0])){U(qw(ARGV[0]?));U("\n");T(1)}$C=length($A);
  43. U("-$A-\n");$D=0;
  44. }$H++;U("\t");$H%8||U("\n");S(M);
  45. $F=$D;if($F!=0){S(N)}$E=$I[0];if($E==$C){U("\n---\n$H\n");T(0)}
  46. $D++;S(J);
  47. $D--;$I[$D]++;S(K);
  48. $F=$I[$D];if($F==$C){S(M)}$E=$D-1;
  49. if($F==$I[$E]){S(P)}$E--;if($E!=-1){S(O)}S(L);
  50. $I[$D]++;S(N);
  51. srand;for(0..5){$r[$_]=chr 65+rand 8}sub d{print$/x6;for(0..335)
  52. {print$_<27&$_>13?'-':$_%14>12?"\n":$_<6?$_[0]?$r[$_]:
  53. 'O': $_%14==6?'|':(split//,$b[int$_/14])[$_%14]||$"}print"$/Enter
  54. m/[A-Ha-h]{6}/\n"}sub c{return if/[^A-H]/||length()-6;@c=split//,
  55. ${$f=\($b[24-++$w]=uc.$")};$w>21&&return 1;for(-6..35){($p[$h]=1)
  56. &($q[$h]=1)&($$f.="*")&$n++if$_<0&&$c[$h=$_+6]eq$r[$h];
  57. !$p[$b]&&!$q[$d]&&($p[$b]=1)&($q[$d]=1)&($$f.="+")
  58. if$c[$d=$_%6]eq$r[$b=$_/6]&&$_>-1}(d$])&die"Done$"if$n>5;
  59. $n=@p=@q=()}while(!c){d|chop($_=uc<>)}d$/;print $/Looser!$/
  60. main(int argc, char *argv[]) { // ; {
  61.   int m=1, i[14]; char * pp; int p=-1;
  62.   int q, F=3; char * qq = Hello\, world!\n;
  63.       i[12]=537463307; i[13]=3085; //,; $_ = "" if(length!=2);
  64.   if(m+-p?(argc>1&&!strcmp(argv[1],"-p"))?p+i? 1 : 1 x 0 x 0) {
  65.     printf(qq/*\bThe Perl Journal\n/#*/
  66.           ); exit(0); }
  67.   qq="=;#"; argv[0][0]='\0'; memset(i,0,48);
  68.   $i[10]=($i[11]=(q/*\b/&&scalar@ARGV))-1;#*/=0) + argc)-1;
  69.   do{
  70.     if($i[11]<2) { $i[10]=1; q/*/&&*F=*STDIN;#*/=F=0;
  71.     } else { open(O_RDONLY, $ARGV[$i[11]-$i[10]]);//; *F=*O_RDONLY;
  72.     }
  73.     while(read(F, $i, 1)>0) {
  74.       ++$i[4]^(q=/*.=,$_=$i);#*/0); pp=i;
  75.       $i[3]+=m=( *pp^0x0A)?/*\n=;#*/0:1; for(qq=&i[12];*qq;*pp^*qq++||(q=1));
  76.       if(m=/*[  \n\f\r\xB]=#*/q
  77.         ) { if($i[1]){$i[$i[1]]++; $i[1]=0; }} else { $i[1]=2;}
  78.     }
  79.     if($i[1]){$i[$i[1]]++;};
  80.     printf("%7d %7d %7d %s\n",$i[3],$i[2],$i[4],$ARGV[$i[11]-$i[10]]);
  81.     close(F);
  82.     if($i[11]>2){for($i[1]=2;$i[$i[1]+4]+=$i[$i[1]];$i[1]++){$i[$i[1]]=0;};$i[1]=0;}
  83.   } while(--$i[10]);
  84.   if($i[11]>2) { printf("%7d %7d %7d total\n",$i[7],$i[6],$i[8]); }
  85. }
  86. BEGIN{$l="ub";$_='KN($){$d=$_[0]}KL(){$B[$R][$C]}KM{$a=@{$B[$R]};
  87. $d==0&&($C++,$C>=$a&&($C=0));$d==2&&($C||($C=$a),$C--);
  88. $d==3&&($R++,$R>=@B&&($R=0));$d==1&&($R||($R=@B),$R--);}
  89. KP($){push@S,shift}KJ(){pop@S||0}KX(){@S[-1,-2]=@S[-2,-1]}KR()
  90. {push@S,$S[-1]}KW($$){"Z".$_[0]."Z,K{".$_[1]."},"}KG($){($_)=($a)=@_;
  91. y/\`/>/;W$a," X;P(J$_ J)"}KD($){($a)=@_;W$a,ZP Z.$a}KE($){($_)=($a)
  92. =@_;y/0123/>^<v/;W $_,"N $a"}';y/Z/\'/;s/K/s$l /g;my($R,$C,@S);
  93. eval$_;}$_=$x=W '_','N(J?2:0)';y/_02/|31/;$x.=$_
  94. #r^>\"J eg"1+T,,,,l#
  95. ; $u=W '"','@T[0,1]=@T[1,0]';$_=$x.$u.W('!','P!J').W('?','P int
  96. rand(4)').W(':','R').W('\\\\','X').W("\$",'J').W(' ',"").W('#','M')
  97. .W('.',"pIJ,chr(32)").W(',',"pIchr J").W('@',"pI'\n';exit").W('g','X
  98. ;P ord$B[J][J]').W('p','X;$a=\\$B[J][J];$$a =chr J;');s/I/rint /g;@T=eval
  99. join"\n",'({',(map{D$_}(0..9)),(map{E$_}(0..3))
  100. ,(map{G$_}split//,'+-*%/`'),$_,'},{',$u,'})';for(@B=<>){$_=
  101. [split/\n*/]}while(1){$_=L;$_=" "if!defined$_;~y/\s/ /;exists$T[0]{$_}?$T[0]
  102. {$_}->():P ord$_;M;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement