这个程序如何工作 [英] how this program works

查看:59
本文介绍了这个程序如何工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



FOllowing是一个由别人写的节目。

它的输出是一首精彩的诗。我不明白它是如何工作的。

可以告诉任何人。

谢谢

cric


#include< stdio.h>

main(int t,char _,char * a)

{

return!0< t ?t< 3?main(-79,-13,a + main(-87,1-_,

main(-86,0,a + 1)+ a)):1, t< _?main(t + 1,_,a):3,main(-94,-27 + t,a

)&& t == 2?_< 13? main(2,_ + 1,"%s%d%d \ n"):9:16:t< 0?t< -72?main(_,

t," @n '' +,# ''/ * {} W + / W#cdnr / +,{} R / * DE} +,/ * {* +,/ W {%+,/ W#q构成#N +,/ #{l,+,/ n {n + \

,/ + #n +,/#; #q #n +,/ + k#; * +,/''r:''d *''3,} {w + K w''K:''+} e#''; dq#''lq#''+ d''K#!/ \

+ K#; q# '' R} EKK#} w''r} EKK {NL] ''/#;#q构成#N ''){)#} W ''){){NL] ''/ + #n''; d} rw''我;#){n \

l]!/ n {n#''; r {#w''r nc {nl]''/#{l,+''K {rw''iK {; [{nl]''/ w#q#\ n''wk nw''

iwk {KK {nl]!/ w {%''l ## w#''i; :{nl]''/ * {q#''ld; r''} {nlwb!/ * de}''c \

;; {nl'' - {} rw] ''/ +,} ##''*} #nc,'',#nw]''/ + kd''+ e} +; \

#''rdq#w! nr''/'')} +} {rl#''{n'''')#}''+} ##(!! /"):t< -50?_ == * a

?putchar(a [31]):main(-65,_,a + 1):main((* a ==''/'')+ t,_,a \

+1):0< t?main(2,2,"%s"):* a ==''/''|| main(0,main(-61,* a, !ek; dc \

i @ bK''(q) - [w] *%n + r3#l,{}:\ nuwloca-O; m .vpbks,fxntdCeghiry" ),a + 1);}

解决方案

Hehhehe,这就像是一个混淆

比赛的参赛作品。通常,那里有一些提示。


顺便说一句,我在BC ++ 5.02中复制''''''''''''''''''''''$ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $编译。


" free2cric" < FR ******* @ yahoo.com>在留言中写道

新闻:e8 ************************** @ posting.google.c om ...


FOllowing是一个由别人写的程序。
它的输出是一首精彩的诗。我不明白它是如何运作的。
任何人都可以告诉。
谢谢
cric





aurgathor写道:

Hehhehe,这就像是一个混淆比赛的参赛作品。通常,那里有一些提示。

顺便说一句,我在BC ++ 5.02中复制了'''''',它没有编译。




GNU缩进也不喜欢它。


我认为它只是无效的C代码......


Tom




" Tom St Denis" <到******** @ gmail.com>在消息中写道

news:11 ********************** @ g14g2000cwa.googlegr oups.com ...


GNU缩进也不喜欢它。

我认为它只是无效的C代码......



可能是为一些旧的,前ansi

编译器编写的代码。当然,如果原始海报是

能够编译并运行此代码,那么他/她应该已经发布了编译器和指令。
/ BLOCKQUOTE>

Hi,
FOllowing is a program which is written by someone else.
Its output is a wonderful poem. I dont understand how it works really.
can anyone tell.
thanks
cric

#include <stdio.h>
main(int t,char _,char *a)
{
return!0<t?t<3?main(-79,-13,a+main(-87,1-_,
main(-86, 0, a+1 )+a)):1,t<_?main(t+1, _, a ):3,main ( -94, -27+t, a
)&&t == 2 ?_<13 ?main ( 2, _+1, "%s %d %d\n" ):9:16:t<0?t<-72?main(_,
t,"@n''+,#''/*{}w+/w#cdnr/+,{}r/*de}+,/*{*+,/w{%+,/w#q#n+,/#{l,+,/n{n+\
,/+#n+,/#;#q#n+,/+k#;*+,/''r :''d*''3,}{w+K w''K:''+}e#'';dq#''l q#''+d''K#!/\
+k#;q#''r}eKK#}w''r}eKK{nl]''/#;#q#n''){)#}w''){){nl]''/+#n'';d}rw'' i;# ){n\
l]!/n{n#''; r{#w''r nc{nl]''/#{l,+''K {rw'' iK{;[{nl]''/w#q#\ n''wk nw''
iwk{KK{nl]!/w{%''l##w#'' i; :{nl]''/*{q#''ld;r''}{nlwb!/*de}''c \
;;{nl''-{}rw]''/+,}##''*}#nc,'',#nw]''/+kd''+e}+;\
#''rdq#w! nr''/ '') }+}{rl#''{n'' '')# }''+}##(!!/") :t<-50?_==*a
?putchar(a[31]):main(-65,_,a+1):main((*a == ''/'')+t,_,a\
+1 ):0<t?main ( 2, 2 , "%s"):*a==''/''||main(0,main(-61,*a, "!ek;dc \
i@bK''(q)-[w]*%n+r3#l,{}:\nuwloca-O;m .vpbks,fxntdCeghiry"),a+1);}

解决方案

Hehhehe, this is like an entry from an obfuscation
contest. Usually, there are some hints there.

BTW, I did a copy''n''paste into BC++ 5.02, and it
doesn''t compile.

"free2cric" <fr*******@yahoo.com> wrote in message
news:e8**************************@posting.google.c om...

Hi,
FOllowing is a program which is written by someone else.
Its output is a wonderful poem. I dont understand how it works really.
can anyone tell.
thanks
cric




aurgathor wrote:

Hehhehe, this is like an entry from an obfuscation
contest. Usually, there are some hints there.

BTW, I did a copy''n''paste into BC++ 5.02, and it
doesn''t compile.



GNU indent didn''t like it neither.

I think it just isn''t valid C code...

Tom



"Tom St Denis" <to********@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...


GNU indent didn''t like it neither.

I think it just isn''t valid C code...


Could be a code written for some old, pre-ansi
compiler. Of course, if the original poster was
able to compile and run this code, s/he should''ve
posted the compiler and instructions.


这篇关于这个程序如何工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆