{"id":65,"date":"2015-02-05T22:59:08","date_gmt":"2015-02-05T14:59:08","guid":{"rendered":"http:\/\/sqrt-1.me\/?p=65"},"modified":"2016-11-19T15:03:17","modified_gmt":"2016-11-19T07:03:17","slug":"c%e8%af%ad%e8%a8%80%e6%b7%b7%e4%b9%b1%e4%bb%a3%e7%a0%81","status":"publish","type":"post","link":"https:\/\/sqrt-1.me\/?p=65","title":{"rendered":"C\u8bed\u8a00\u6df7\u4e71\u4ee3\u7801"},"content":{"rendered":"<p>\u56fd\u9645C\u8bed\u8a00\u6df7\u4e71\u4ee3\u7801\u5927\u8d5b\uff08IOCCC, The International Obfuscated C Code Contest\uff09\u662f\u4e00\u9879\u56fd\u9645\u7f16\u7a0b\u8d5b\u4e8b\uff0c\u4ece1984\u5e74\u5f00\u59cb\uff0c\u6bcf\u5e74\u4e3e\u529e\u4e00\u6b21\uff081997\u5e74\u30011999\u5e74\u30012002\u5e74\u30012003\u5e74\u548c2006\u5e74\u4f8b\u5916\uff09\u3002\u76ee\u7684\u662f\u5199\u51fa\u6700\u6709\u521b\u610f\u7684\u6700\u8ba9\u4eba\u96be\u4ee5\u7406\u89e3\u7684C\u8bed\u8a00\u4ee3\u7801\u3002<\/p>\n<p>\uff08\u4ee5\u4e0a\u5185\u5bb9\u5f15\u7528\u81ea\u7ef4\u57fa\u767e\u79d1\uff09<\/p>\n<p>\u6b63\u56e0\u4e3aC\u8bed\u8a00\u6709\u9884\u5904\u7406\u5668\u548c\u4e00\u4e9b\u4e0d\u5e38\u7528\u7684\u7279\u6027\uff0c\u6240\u4ee5\u53ef\u4ee5\u5199\u51fa\u590d\u6742\u96be\u61c2\u7684\u4ee3\u7801\u3002\u5386\u5e74\u7684\u83b7\u5956\u4f5c\u54c1\u53ef\u4ee5\u5728<a href=\"http:\/\/www.ioccc.org\/years.html\">\u8fd9\u91cc<\/a>\u770b\u5230\u3002<\/p>\n<p>\u4f8b\u5982\u4ee5\u4e0b\u4ee3\u7801\uff08\u8fd0\u884c\u7ed3\u679c\u662f\u4e00\u9996\u82f1\u6587\u8bd7\uff09\uff1a<\/p>\n<p><!--more--><\/p>\n<pre class=\"lang:c decode:true \" >\r\n#include &lt;stdio.h&gt;\r\nmain(t,_,a)char *a;{return!0&lt;t?t&lt;3?\r\nmain(-79,-13,a+main(-87,1-_,main(-86,0,a+1)+a)):1,t&lt;_?main(t+1,_,a):3,main(-94,-27+t,a)&amp;&amp;t==2?_&lt;13?\r\nmain(2,_+1,&quot;%s %d %d\\n&quot;):9:16:t&lt;0?t&lt;-72?\r\nmain(_,t,&quot;@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;# ){nl]!\/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' ')# }'+}##(!!\/&quot;)\r\n:t&lt;-50?_==*a?putchar(31[a]):main(-65,_,a+1):main((*a=='\/')+t,_,a+1)\r\n:0&lt;t?main(2,2,&quot;%s&quot;):*a=='\/'||main(0,main(-61,*a,\r\n&quot;!ek;dc i@bK'(q)-[w]*%n+r3#l,{}:\\nuwloca-O;m .vpbks,fxntdCeghiry&quot;),a+1);}\r\n<\/pre>\n<p>\u6211\u4e5f\u8bd5\u7740\u5199\u4e86\u4e00\u4e2a\u96be\u61c2\u7684C\u8bed\u8a00\u7a0b\u5e8f\uff0c\u4ee3\u7801\u53ea\u6709\u4e00\u884c\uff1a<\/p>\n<pre class=\"lang:c decode:true \" >\r\nmain(_){!--_?(scanf(&quot;%d&quot;,&amp;_),main(_&lt;&lt;1)):((++_&amp;~3)&amp;&amp;main(_&gt;&gt;1&amp;~1),putchar((_&amp;2)\/2|48));}\r\n<\/pre>\n<p>\u5176\u4e2d\u5229\u7528\u4e86main\u51fd\u6570\u7684\u9012\u5f52\u8c03\u7528\u3001\u4f4d\u8fd0\u7b97\u3001\u903b\u8f91\u8fd0\u7b97\u7b26\u7684\u77ed\u8def\u7279\u6027\u7b49\u7b49\u3002<\/p>\n<p>\u5982\u679c\u4f60\u60f3\u77e5\u9053\u8fd9\u6bb5\u4ee3\u7801\u7684\u529f\u80fd\u662f\u4ec0\u4e48\uff0c\u81ea\u5df1\u7f16\u8bd1\u8fd0\u884c\u8bd5\u8bd5\u5427\uff01\uff08\u63d0\u793a\uff1a\u8f93\u5165\u4e00\u4e2a\u6b63\u6574\u6570\u8bd5\u8bd5\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u56fd\u9645C\u8bed\u8a00\u6df7\u4e71\u4ee3\u7801\u5927\u8d5b\uff08IOCCC, The International Obfuscated C Code  &hellip; <a href=\"https:\/\/sqrt-1.me\/?p=65\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201cC\u8bed\u8a00\u6df7\u4e71\u4ee3\u7801\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":"","_links_to":"","_links_to_target":""},"categories":[2],"tags":[],"class_list":["post-65","post","type-post","status-publish","format-standard","hentry","category-c-language"],"_links":{"self":[{"href":"https:\/\/sqrt-1.me\/index.php?rest_route=\/wp\/v2\/posts\/65","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sqrt-1.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sqrt-1.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sqrt-1.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sqrt-1.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=65"}],"version-history":[{"count":7,"href":"https:\/\/sqrt-1.me\/index.php?rest_route=\/wp\/v2\/posts\/65\/revisions"}],"predecessor-version":[{"id":350,"href":"https:\/\/sqrt-1.me\/index.php?rest_route=\/wp\/v2\/posts\/65\/revisions\/350"}],"wp:attachment":[{"href":"https:\/\/sqrt-1.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=65"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sqrt-1.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=65"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sqrt-1.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=65"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}