Advertisement
Bazze

Lovely christmas!

Dec 8th, 2011
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.54 KB | None | 0 0
  1. /*
  2. LEAST LIKELY TO COMPILE SUCCESSFULLY:
  3.   Ian Phillipps, Cambridge Consultants Ltd., Cambridge, England
  4.  
  5.   An appropriate program for December 25th, this consists primarily of
  6.   calls to main() combined by a lot of the ternary conditional (?:)
  7.   operators. Have you ever seen a more forceful return? The judges note
  8.   that this program looked like what you would get by pounding on the keys
  9.   of a type writer at random.
  10.  
  11.   Note -- I have made a minor correction (for spelling) to line 48, where I
  12.   added a missing comma at column 59. I also added the #include <stdio.h>
  13. */
  14.  
  15. #include <stdio.h>
  16. main(t,_,a)
  17. char
  18. *
  19. a;
  20. {
  21.         return!
  22.  
  23. 0<t?
  24. t<3?
  25.  
  26. main(-79,-13,a+
  27. main(-87,1-_,
  28. main(-86, 0, a+1 )
  29.  
  30.  
  31. +a)):
  32.  
  33. 1,
  34. t<_?
  35. main(t+1, _, a )
  36. :3,
  37.  
  38. main ( -94, -27+t, a )
  39. &&t == 2 ?_
  40. <13 ?
  41.  
  42. main ( 2, _+1, "%s %d %d\n" )
  43.  
  44. :9:16:
  45. t<0?
  46. t<-72?
  47. main( _, t,
  48. "@n'+,#'/*{}w+/w#cdnr/+,{}r/*de}+,/*{*+,/w{%+,/w#q#n+,/#{l,+,/n{n+,/+#n+,/#;\
  49. #q#n+,/+k#;*+,/'r :'d*'3,}{w+K w'K:'+}e#';dq#'l q#'+d'K#!/+k#;\
  50. q#'r}eKK#}w'r}eKK{nl]'/#;#q#n'){)#}w'){){nl]'/+#n';d}rw' i;# ){nl]!/n{n#'; \
  51. r{#w'r nc{nl]'/#{l,+'K {rw' iK{;[{nl]'/w#q#\
  52. \
  53. n'wk nw' iwk{KK{nl]!/w{%'l##w#' i; :{nl]'/*{q#'ld;r'}{nlwb!/*de}'c ;;\
  54. {nl'-{}rw]'/+,}##'*}#nc,',#nw]'/+kd'+e}+;\
  55. #'rdq#w! nr'/ ') }+}{rl#'{n' ')# }'+}##(!!/")
  56. :
  57. t<-50?
  58. _==*a ?
  59. putchar(31[a]):
  60.  
  61. main(-65,_,a+1)
  62. :
  63. main((*a == '/') + t, _, a + 1 )
  64. :
  65.  
  66. 0<t?
  67.  
  68. main ( 2, 2 , "%s")
  69. :*a=='/'||
  70.  
  71. main(0,
  72.  
  73. main(-61,*a, "!ek;dc i@bK'(q)-[w]*%n+r3#l,{}:\nuwloca-O;m .vpbks,fxntdCeghiry")
  74.  
  75. ,a+1);}
  76.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement