C语言混乱代码

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

                                       /*
                                      +
                                     +
                                    +
                                    +
                                    [         >i>n[t
                                     */   #include
                        /*2w0,1m2,]_r>i>=>(['0n1'0)1;
                     */int/**/main(int/**/n,char**m){FILE*p,*q;int        A,k,a,r,i/*
                   #uinndcelfu_dseti/_*/;char*d="P%"   "d\n%d\40%d"/**/
                 "\n%d\n\00wb+",b[1024],y[]="yuriyurarararayuruyuri*daijiken**akkari~n**"
          "/y*u*k/riinrarararayuruy9uriyu3riyurar_aBrMaPrOaWy^?"
      "*]/f]`;hvroai+b+i>++b++>l[rb";int/**/u;for(i=0;i<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+oy++>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){/*
]&<1<6< ?3> +:+ .1>3+++     .   -m-)      -;.u+=++.1<0< <; f>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(/*
      h.a r  -(-).)8+<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
                                 #define M(x)!memcmp(e+d,k[x],3)
                             #define V(x)}            void x(int s){
                          #define W(                      x)putchar(x);
                       #include                                 
                     #include                                       
                   #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<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                    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++

 

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

☆版权☆

* 网站名称:obaby@mars
* 网址:https://lang.ma/
* 个性:https://oba.by/
* 本文标题: 《C语言混乱代码》
* 本文链接:https://baby.lc/2012/04/4028
* 短链接:https://oba.by/?p=4028
* 转载文章请标明文章来源,原文标题以及原文链接。请遵从 《署名-非商业性使用-相同方式共享 2.5 中国大陆 (CC BY-NC-SA 2.5 CN) 》许可协议。


You may also like

3 comments

    1. 公主 Queen 
      Opera 11 Opera 11 Windows XP Windows XP tw台湾省 中华电信(HiNet)数据中心

      你可以看那个链接,具体效果不好描述。呵呵 8)

发表回复

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