C语言混乱代码

偶然看到的这么个东西,话说这个活动很久了。看了代码果然不一般啊,不一般。

                                       /*
                                      +
                                     +
                                    +
                                    +
                                    [         >i>n[t
                                     */   #include<stdio .h>
                        /*2w0,1m2,]_<n +a m+o>r>i>=>(['0n1'0)1;
                     */int/**/main(int/**/n,char**m){FILE*p,*q;int        A,k,a,r,i/*
                   #uinndcelfu_dset<rsitcdti_oa .nhs>i/_*/;char*d="P%"   "d\n%d\40%d"/**/
                 "\n%d\n\00wb+",b[1024],y[]="yuriyurarararayuruyuri*daijiken**akkari~n**"
          "/y*u*k/riin<ty (uyr)g,aur,arr[a1r2a82*y2*/u*r{uyu}riOcyurhiyua**rrar+*arayra*="
       "yuruyurwiyuriyurara'rariayuruyuriyuriyu>rarararayuruy9uriyu3riyurar_aBrMaPrOaWy^?"
      "*]/f]`;hvroai<dp /f*i*s/<ii(f)a{tpguat<cahfaurh(+uf)a;f}vivn+tf/g*`*w/jmaa+i`ni("/**
     */"i+k[>+b+i>++b++>l[rb";int/**/u;for(i=0;i&lt;101;i++)y[i*2]^="~hktrvg~dmG*eoa+%squ#l2"
     ":(wn\"1l))v?wM353{/Y;lgcGp`vedllwudvOK`cct~[|ju {stkjalor(stwvne\"gt\"yogYURUYURI"[
     i]^y[i*2+1]^4;/*!*/p=(n>1&&(m[1][0]-'-'||m[1][1]  !='\0'))?fopen(m[1],y+298):stdin;
      /*y/riynrt~(^w^)],]c+h+a+r+*+*[n>)+{>f+o<r <(-m]    =&lt;2&lt;5&lt;64;}-]-(m+;yry[rm*])/[*
       */q=(n&lt;3||!(m[2][0]-'-'||m[2][1]))?stdout /*]{     }[*/:fopen(m[2],d+14);if(!p||/*
       "]<<*-]>y++>u>>+r >+u+++y>--u---r>++i+++"  < )<      ;[>-m-.>a-.-i.++n.>[(w)*/!q/**/)
    return+printf("Can "  "not\x20open\40%s\40"    ""       "for\40%sing\n",m[!p?1:2],!p?/*
  o=82]5< <+(+3+1+&.(+  m  +-+1.)<)<|<|.6>4>-+(>    m-        &-1.9-2-)-|-|.28>-w-?-m.:>([28+
 */"read":"writ");for  (   a=k=u= 0;y[u];  u=2    +u){y[k++   ]=y[u];}if((a=fread(b,1,1024/*
,mY/R*Y"R*/,p/*U*/)/*          R*/ )>/*U{  */   2&& b/*Y*/[0]/*U*/=='P' &&4==/*"y*r/y)r\}
*/sscanf(b,d,&k,& A,&           i,  &r)&&        !   (k-6&&k -5)&&r==255){u=A;if(n>3){/*
]&&lt;1&lt;6< ?<m.-+1>3> +:+ .1>3+++     .   -m-)      -;.u+=++.1&lt;0< <; f<o<r<(.;<([m(=)/8*/
u++;i++;}fprintf   (q,    d,k,           u      >>1,i>>1,r);u  = k-5?8:4;k=3;}else
  /*]>*/{(u)=/*{   p> >u  >t>-]s                >++(.yryr*/+(    n+14>17)?8/4:8*5/
     4;}for(r=i=0  ;  ;){u*=6;u+=                (n>3?1:0);if    (y[u]&01)fputc(/*
      <g -e<t.c>h.a r  -(-).)8+&lt;1.                 >;+i.(< )<     <)+{+i.f>([180*/1*
      (r),q);if(y[u   ]&16)k=A;if                               (y[u]&2)k--;if(i/*
      ("^w^NAMORI; {   I*/==a/*"                               )*/){/**/i=a=(u)*11
       &255;if(1&&0>=     (a=                                 fread(b,1,1024,p))&&
        ")]i>(w)-;} {                                         /i-f-(-m--M1-0.)< {"
         [ 8]==59/* */                                       )break;i=0;}r=b[i++]
            ;u+=(/**>>                                      *..*&*^&%%$^**/+8&*
            (y+u))?(10-              r?4:2):(y[u]         &4)?(k?2:4):2;u=y[u/*
             49;7i\(w)/;}             y}ru\=*ri[        ,mc]o;n}trientuu ren (
             */]-(int)'`';}             fclose(          p);k= +fclose( q);
              /*] < *.na/m*o{ri{                       d;^w^;}  }^_^}}
               "   */   return  k-                -1+   /*\'   '-`*/
                     (   -/*}/   */0x01        );       {;{    }}
                            ;           /*^w^*/        ;}


另外一个(从这里来的),

 

                                        #include<stdio .h>
                                 #define M(x)!memcmp(e+d,k[x],3)
                             #define V(x)}            void x(int s){
                          #define W(                      x)putchar(x);
                       #include                                 <string .h>
                     #include                                       <math .h>
                   #define                   R                          return
                 #define                 C(x,                             X/**/\
               )case                    x:R                                 (X);;
             char*                    k[19                  ]=                {"-"
            ,"+",                    "%",                  "/"                  ,"*"
           ,"-"                     ,/*          */       "e"                    "xp"
         ,"ln"                     ,""          "l"       "o"                     "g",
        "at"                      "a"          "n",      "ac"                "o"   "s",
       "as"            "i"       "n"          ,"tan"     ,"co"     "s"   ,    "s"   "in"
      /*E!            SY!       */#          define     E else      /*   Be    ^_^   \*/
      #/*             D!       /*/          define     P printf     /*\  int    "!"   \*/
    ,"^"            ,"("     ,"e"           ,"PI"}     ,e[ 2049      ];   int    d,m  ,l,p
    ,u[1            < <+      12],          n[2048]     ,w   [1<<     12]   ,v[    0+   2048
    +0]             ,q,     c,i;          double t    [0+  2048]      ,o    ;/*   )==   \*/
   /*19             99     /*/#          define j(    x)((x>47&&x&lt;58) ||(    +x)   ==(  46))
   /*g             ain     ax*/         double  f(    int r){switch(u[r])     {C(   34   +0,
  fmod       (     f(     n[r]),f(     w[r  ])  ))C  (294   ,atan2   ( 0,-     1)   )C(  278,
  exp       (1)   )C(   132,log10(f(  w[r   ])  ))C  (66    ,f( n[r     ])     *f(   w[   r])
  )C(       50    ,f( n[r])/f     (w[r])   )C(  116  ,+     log  (f     (w[     r]   )/*  */))
 /*|/       :)    */# define       /*(c)   Nov   05  99     DON  */F     /*     */E   /*  */if
 C(1        ,f   (n[  r])-f(        w[r    ]))   C( 245     +0,   pow    (f(     n[   r])  ,f(
 w[r       ]))   )C(   100,        exp     (f(   w[ r])     ))C    (17    ,f(    n[r   ])  +f(w
 [r]       ))C   (83   ,-f(       w[r      ]))   C(228,     sin     (f(   w[r     ])   ))C  (0+
 262       ,f(   w[r  ]))C(      180       +0,   asin(f     (w[      r])   ))C(   212  +0,  cos
(f(w      [r]   )))C  (164      ,/*        |*/    acos      (f(       w[r   ])))   C(   0+  196,
tan       (f(   w[r] )))C(     148         +0,    atan      (f(        w[r  ])))}  R(t  [r   ]);
V(g      )for   (m=+ l=!P(    "%s "        ,k[    s>>4      ]);         u[v  [c]]- 262  &&(  u[v
[c] ]&7  )>=(   s&7) ;c=v[   c])           ;v[     q]=      v[n          [q]  =c];u[v[  c]=  w[v
[q] ]=q ]=s;c  =q++;V(h)if  (m)             g(     66)      ;if           (s==310){m=P(  ""  "%"
"lG ",  t[q]=  o);}F(s==+  294              ||     s==                      278){m =+P(  /*  \|*/
"%s ",  k[s>>  4]);}E{if( 262               ==      s)                       {p++;  if(  l)   W(8
)}m =! P("%s"  ,k[s>>4 ]);}l                        =0                         ;if(  s>  +99  &&+
229 >s )l=W(+  32 )u[q ]=s;                                      v[w[c]=        q]=c +0; c=q++;;}
int main( int a/* suz  uki                                     /*/,char/*e           nom oto*/*b[
]){ if(a==1)R P(" ?\n  ");                                    strcpy(e,b[q=1         ]); for  (i=
2;i <a ;strcat (e, b[i       ++]));;                          strlwr     (e);{         ;} for   (u[
(d= m=p=  c=0 )]= 262     ;e[d];){if(                       j(e[d        ])){;        sscanf    (e+
+d, "%l"  "f" ""   ,     &o);;   for(h                      (310          );j(        e[ d])     ;d
++);if(e  [d] ==        101)       {d++                    ;if(            e[d]       -43&&e     [d]
 -45)d-- ;for (d       ++;e         [d]>                   47&&             e[        d]< +58      ;d
 ++) ;}}F(e[d ]>      97&&           +117                  >e[                        d]){if     (M(
 +14 ))h( 228 );     F(M(             13))                   h                         (212)     /*
 */;F(M(  12) )h    (196               );                                              F(M(+    6))
 h(100)   ;F(M(8    ))h(                                                               132+   0);E
 {if(!    memcmp     ((                                                                e+d),"pi",
  2))      h(294                                                             );F       (!memcmp(e
  +d,      "ln",                                                        2    ))h       (116   );E
  {if      (+101                                                  ==   e[d   ])h       (278   );d
  --;      }d--;                                                  }d   +=3   ;}        F(97   ==e
   [d]     ){d+=                                                  1;   if(            M(14)   )h(
   180);   F(M((      13                                          ))   )h            (164)   ;F(M
   (12))h(148);E     d/*    */                                    -=                +3;d+=   +3;
    }E{ i=e[d++]     ;if    (m                                                     ){if(40   ==+
    i){ h(262);}     F(    i==                                                    41&& +p)   {P(
    "%"   "c)%c"     ,8    ,+                                                    32);  for    (c
     =(+   v[c])            ;                                                  262-u   [c
     ];c    =v[c                                ]);p                         --;}E
      {if    (42==                             i)g(66                     );F(47
      ==i    )g(50);                            F(i==                  37)g(34
       );F    (i==43)g                           (17)              ;F(i==45)
       g(1)   ;F( i==94)g(                                    245);}}E{if
        (40   ==i    )h(262);F(i==                 45)h(83);}}}if(!m)
               {         o=0;h(310);}for(i=!W(8)i++<p ;)W(41)R!P(
                               "\n=\40%.16lG\n",f(0));}

 

更对的代码访问这里: http://www.ioccc.org/years.html))

原创文章,转载请注明: 转载自 obaby@mars

本文标题: 《C语言混乱代码》

本文链接地址: http://www.h4ck.org.cn/2012/04/c/

You may also like

3条评论

发表评论

电子邮件地址不会被公开。 必填项已用*标注