Guest User

Untitled

a guest
Dec 14th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.37 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.  
  12. #include <stdio.h>
  13. main(t,_,a)
  14. char
  15. *
  16. a;
  17. {
  18.     return!
  19.  
  20. 0<t?
  21. t<3?
  22.  
  23. main(-79,-13,a+
  24. main(-87,1-_,
  25. main(-86, 0, a+1 )
  26.  
  27.  
  28. +a)):
  29.  
  30. 1,
  31. t<_?
  32. main(t+1, _, a )
  33. :3,
  34.  
  35. main ( -94, -27+t, a )
  36. &&t == 2 ?_
  37. <13 ?
  38.  
  39. main ( 2, _+1, "%s %d %d\n" )
  40.  
  41. :9:16:
  42. t<0?
  43. t<-72?
  44. main( _, t,
  45. "@n'+,#'/*{}w+/w#cdnr/+,{}r/*de}+,/*{*+,/w{%+,/w#q#n+,/#{l,+,/n{n+,/+#n+,/#;\
  46. #q#n+,/+k#;*+,/'r :'d*'3,}{w+K w'K:'+}e#';dq#'l q#'+d'K#!/+k#;\
  47. q#'r}eKK#}w'r}eKK{nl]'/#;#q#n'){)#}w'){){nl]'/+#n';d}rw' i;# ){nl]!/n{n#'; \
  48. r{#w'r nc{nl]'/#{l,+'K {rw' iK{;[{nl]'/w#q#\
  49. \
  50. n'wk nw' iwk{KK{nl]!/w{%'l##w#' i; :{nl]'/*{q#'ld;r'}{nlwb!/*de}'c ;;\
  51. {nl'-{}rw]'/+,}##'*}#nc,',#nw]'/+kd'+e}+;\
  52. #'rdq#w! nr'/ ') }+}{rl#'{n' ')# }'+}##(!!/")
  53. :
  54. t<-50?
  55. _==*a ?
  56. putchar(31[a]):
  57.  
  58. main(-65,_,a+1)
  59. :
  60. main((*a == '/') + t, _, a + 1 )
  61. :
  62.  
  63. 0<t?
  64.  
  65. main ( 2, 2 , "%s")
  66. :*a=='/'||
  67.  
  68. main(0,
  69.  
  70. main(-61,*a, "!ek;dc i@bK'(q)-[w]*%n+r3#l,{}:\nuwloca-O;m .vpbks,fxntdCeghiry")
  71.  
  72. ,a+1);}
Add Comment
Please, Sign In to add comment