天书奇谈C#版

Here's a nice challange for people who THINK they know how to read other people's code...

It's a small C# program. I know, I know, it doesn't look like it's gonna get compiled, but believe me, it does. Try to guess this program's output, then try to run it. You'll be amazed to see what it does!

 1  class  __{ static  void Main(){O( 1 , 0 , "" );} static   int  O( int  l, int  I, string  _){ int  o;
 2  if ( 1 < l){ if ( 3 > l)O( - 79 , - 13 ,_.Substring(O( - 87 , 1 - I,_.Substring(O( - 86 , 0 ,_.Substring( 1
 3  )))))); if (I > l)O(l + 1 ,I,_);o = 0 == O( - 94 , - 27 + l,_)||l! = 2 ? 16 :I > 12 ? 9 :O( 2 ,I + 1 , " air|skyiv "
 4  );} else   if ( 0 > l){ if ( - 72 > l)o = O(I,l, " @n'+,#'/*{}w+/w#cdnr/+,{}r/*de}+,/*{*+,/w{%+ " +
 5  " ,/w#q#n+,/#{l+,/n{n+,/+#n+,/#;#q#n+,/+k#;*+,/'r :'d*'3,}{w+K w'K:'+}e#';dq#'l " +
 6  "  q#'+d'K#!/+k#;q#'r}eKK#}w'r}eKK{nl]'/#;#q#n'){)#}w'){){nl]'/+#n';d}rw' i;# ) " +
 7  " {nl]!/n{n#'; r{#w'r nc{nl]'/#{l,+'K {rw' iK{;[{nl]'/w#q#n'wk nw' iwk{KK{nl]!/ " +
 8  " w{%'l##w#' i; :{nl]'/*{q#'ld;r'}{nlwb!/*de}'c ;;{nl'-{}rw]'/+,}##'*}#nc,',#nw " +
 9  " ]'/+kd'+e}+;#'rdq#w! nr'/ ') }+}{rl#'{n' ')# }'+}##(!!/ " ); else   if ( - 51 < l)o = O((_[
10  0 ] == 47 ? 1 : 0 ) + l,I,_.Substring( 1 )); else   if (I! = _[ 0 ])o = O( - 65 ,I,_.Substring( 1 )); else {o
11  = _[ 31 ];System.Console.Write(_[ 31 ]);}} else  o = 0 < l?O( 2 , 2 , " c# " ): 47 == _[ 0 ]? 1 :O( 0 ,O( - 61
12  ,_[ 0 ], " !ek;dc i@bK'(q)-[w]*%n+r3#l,{}:\nuwloca-O;m .vpbks,fxntdCeghiry " ),_.
13  Substring( 1 )); return  o;}}

转载于:https://www.cnblogs.com/skyiv/archive/2005/09/21/SealedBook.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值