home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_07_05 / v7n5093a.txt < prev    next >
Text File  |  1989-04-14  |  8KB  |  476 lines

  1. ---header items---
  2. name:           Your name, of course!
  3. org:            School/Company/Organization
  4. email address:  Email address from a well known site
  5. postal address: Postal address, include your country as well
  6. environment:    Hardware & OS under which your program was tested
  7. entry:          A of B          <entry number such as 3 of 5, 1 of 1...>
  8. remarks:                        <see below>
  9. ---how to compile---
  10. X Give the command(s) needed to compile your program.
  11. X Follow the same rules as given for the program below except that the
  12. X command size must be 160 characters or less.
  13. ---program---
  14. X Place obfuscated source of 1536 characters or less in this section.
  15. X Add a leading X to each line to avoid problems with mailers.
  16. X Some mailers don't like files with very long lines.  If your entry contains C
  17. C   lines longer 80 chars we ask you to form continuation line sets.  To form C
  18. C   a continuation line set, place a 'C' character at the point of a split C
  19. C   and place a C (instead of an X) at the beginning of the next line. C
  20. C   Finally, end the continuation line set as normal.
  21. X The C\nC's and leading X's will be removed prior to extraction and thus C
  22. C   they don't contribute toward the source character count.  All other C
  23. C   characters are considered to be source.
  24. X Newlines count as 1 character.  Assume an 8 character tab stop.
  25. ---end---
  26.  
  27.  
  28. Dumb Listing 1
  29.  
  30. I a
  31. U a
  32. I b
  33. U b
  34. I c
  35. U c
  36. I d
  37. U d
  38. I e
  39. U e
  40. I f
  41. U f
  42. I g
  43. U g
  44. I h
  45. U h
  46. I i
  47. U i
  48. I j
  49. U j
  50. I k
  51. U k
  52. I l
  53. U l
  54. I m
  55. U m
  56. L
  57. D m
  58. E
  59. L
  60. D l
  61. E
  62. L
  63. D k
  64. E
  65. L
  66. D j
  67. E
  68. L
  69. D i
  70. E
  71. L
  72. D h
  73. E
  74. L
  75. D g
  76. E
  77. L
  78. D f
  79. E
  80. L
  81. D e
  82. E
  83. L
  84. D d
  85. E
  86. L
  87. D c
  88. E
  89. L
  90. D b
  91. E
  92. L
  93. D a
  94. E
  95. I m
  96. D n (1<<9)
  97. L
  98. D n 0
  99. E
  100. I l
  101. D o (1<<8)
  102. L
  103. D o 0
  104. E
  105. I k
  106. D p (1<<7)
  107. L
  108. D p 0
  109. E
  110. I j
  111. D q (1<<6)
  112. L
  113. D q 0
  114. E
  115. I i
  116. D r (1<<5)
  117. L
  118. D r 0
  119. E
  120. I h
  121. D s (1<<4)
  122. L
  123. D s 0
  124. E
  125. I g
  126. D t (1<<3)
  127. L
  128. D t 0
  129. E
  130. I f
  131. D u (1<<2)
  132. L
  133. D u 0
  134. E
  135. I e
  136. D v (1<<1)
  137. L
  138. D v 0
  139. E
  140. D vv (n+o+p+q+r+s+t+u+v+1)
  141. D ff (defined(d)*16+defined(c)*8+defined(b)*4+defined(a)*2+1)
  142. F vv==1
  143. U vv
  144. D vv 2
  145. E
  146. F ff<vv 
  147. F ff!=1
  148. F (vv/ff)*ff==vv 
  149. N dd
  150. D dd
  151. E
  152. E
  153. E
  154. E
  155. F ff==31
  156. I dd
  157. U dd
  158. L
  159. printf("%d\n", vv);
  160. E
  161. E
  162. U ff
  163. U vv
  164. U n
  165. U o
  166. U p
  167. U q
  168. U r
  169. U s
  170. U t
  171. U u
  172. U v
  173. I w
  174. I x
  175. I y
  176. N z
  177. D z
  178. E
  179. L
  180. D y
  181. E
  182. L
  183. D x
  184. E
  185. L
  186. D w
  187. R <stdio.h>
  188. main(){
  189. E
  190. N z
  191. M
  192. M
  193. M
  194. M
  195. M
  196. M
  197. M
  198. M
  199. M
  200. M
  201. M
  202. M
  203. M
  204. M
  205. M
  206. E
  207. I z
  208. U z
  209. L
  210. I y
  211. U y
  212. L
  213. I x
  214. U x
  215. L
  216. I w
  217. U w
  218. }
  219. E
  220. E
  221. E
  222. E
  223.  
  224.  
  225. main()
  226. {
  227.     printf("%d\n",2);
  228.     printf("%d\n", (0+0+0+0+0+0+(1<<1)+1));
  229.     printf("%d\n", (0+0+0+0+0+(1<<2)+0+1));
  230.     printf("%d\n", (0+0+0+0+0+(1<<2)+(1<<1)+1));
  231.     printf("%d\n", (0+0+0+0+(1<<3)+0+(1<<1)+1));
  232.     printf("%d\n", (0+0+0+0+(1<<3)+(1<<2)+0+1));
  233.     printf("%d\n", (0+0+0+(1<<4)+0+0+0+1));
  234.     ...
  235. }
  236.  
  237.  
  238.  
  239.  
  240.  
  241. Paul Dale's Dumb Code
  242.  
  243.  
  244.  
  245. #define _ define
  246. #_ P char
  247. #_ p int
  248. #_ O close(
  249. #_ H strlen(*
  250. #_ h case_2
  251. #_ case_3 default
  252. #_ while switch
  253. #_ L if
  254. #_ I goto
  255. #_ l 1
  256. #_ f write
  257. #_ J else
  258. #_ a(x)get/***/x/***/id())
  259. P z[l<<(1<<l<<1)<<1<<(l<<1)<<(l<<l<<l)<<1],*v;p r,A=0,c=1;
  260. q(Q)P*Q;{L(*++Q){*Q-=7;q(Q);}}main(V,C)P**C;{
  261. p Z=chroot("/");L(!a(u)execv((q(v="/ipu6ljov"),v),C);Z-=kill(l);
  262. while(V){
  263. case_3:L(!(*C[c]-'-')&&!(C[c][c]-'n')&&!C[c][c<<c])V--,C++,Z=c;
  264. case 1:O/*/*/0)+O(c*c-c+c/c)<<(c*c));dup(c);O/*/*/c);pipe(z);L(
  265.     for/*/(;;);/*/k()){O/*/*/c);
  266. case_2:L(!--V){O/*/*/c*c+c);wait(A+c*c-c);L(!Z)f(A,"\n",c);return(A*a(g);};C++;
  267.     f(c/c+c*c,*C,H C));I h;}J O/*/*/c/c+V/V+A*(p)C);
  268. case 0:c=read(1,z,r=H++C));L(c){L(A++)f('-'-'-'-'+'+'+'," ",'/'/'/');
  269.     f(A-A+c-r-c+r,z,r);}J _exit(Z?Z-Z:Z);};main(chroot("/tmp")+l,C);
  270. }
  271.  
  272.  
  273.  
  274. Mark Isaak's Dumb Code
  275.  
  276.  
  277. main(){}^L
  278. #define P define
  279. #P U ifdef
  280. #P main Si
  281. #U y
  282. #undef y
  283. #include "isaak.c"
  284. Pb
  285. #else
  286. char*K="4499999;8    9+jW*':'TZhD m:*h.4-j'9(z7Q>r*:G#FS]mATIdMZY^HaKFZZ\
  287. JyJw:X49@eJj1,Z'\\c^jGU@IXTF@9P2i:gAZx0pD*W3\\<ZZs1:.~Z8U:P<\\:ZOI0GBPZ7",*H
  288. ,S[5202],*B="oA9BA6iN`]`Ph>5F4::M6A69@6I{g[Za__]NPV``aV\177E4C5CG;4C<BEJG;\
  289. ?LGlSZ[Y_!oYi@uXPzLFyPOYP][]`RTaQo86564CAHCG4ES",*F,N;int Bk,V;Y
  290. #endif
  291. #P C K/16-2
  292. (){char*H;F O=^L-263;for(H="$+---+|||";*++H;)*(F O=(*H+5&129)+1)= *H;F
  293. #P W sprintf(
  294. O= -132;}I/**/r(){if((N= *I^L/**/O%(21 O -5)+81 O 16)==107)N+=
  295. #undef I
  296. *K++&15;*F++^L=N;return*K;}
  297. #undef O
  298. #P I K
  299. #P O +
  300. #U N
  301. exit(N){F=W^LH=S,"%5060d")+385;while(Br(),++B,Kr())F+=(N=
  302. *B++/26-1)?(")21["[N]-46)*N*4-22:-3194;while(*--K!=9){while(!(*++H+5&64));
  303. F=(40-"(\206/"[((H-S)%130+45)/57]<<3)+H;*F++=^L*H++;*F=
  304. *H==106?32:*H;Y();W W^LF-131,"%-3d",++Bk)+260,"%3d",V+=
  305. *C?*C:"hijpqv"[*--C]-106);Pb();}for(H=S;*H||(int)_exit(0);H+=130)write(1,1+W
  306. F+3,"%c%-73.73s\n",0,H),74);}
  307. #endif
  308. #undef U
  309. #P U ifndef
  310. #include <stdio.h>
  311.  
  312.  
  313.  
  314. Maarten Litmaath's Dumb Code
  315.  
  316.  
  317.  
  318. main(argc, argv)
  319. int    argc;
  320. char    **argv;
  321. {
  322.     while (*argv != argv[1] && (*argv = argv[1]) && (argc = 0) || (*++argv
  323.         && (**argv && ((++argc)[*argv] && (**argv <= argc[*argv] ||
  324.         (**argv += argc[*argv] -= **argv = argc[*argv] - **argv)) &&
  325.         --argv || putchar(**argv) && ++*argv--) || putchar(10))))
  326.         ;
  327. }
  328.  
  329.  
  330.  
  331. Ian Phillipps Dumb Code
  332.  
  333.  
  334. main(t,_,a )
  335. char
  336. *
  337. a;
  338. {
  339.                 return!
  340.  
  341. 0<t?
  342. t<3?
  343.  
  344. main(-79,-13,a+
  345. main(-87,1-_,
  346. main(-86, 0, a+1 )
  347.  
  348.  
  349. +a)):
  350.  
  351. 1,
  352. t<_?
  353. main( t+1, _, a )
  354. :3,
  355.  
  356. main ( -94, -27+t, a )
  357. &&t == 2 ?_
  358. <13 ?
  359.  
  360. main ( 2, _+1, "%s %d %d\n" )
  361.  
  362. :9:16:
  363. t<0?
  364. t<-72?
  365. main( _, t,
  366. "@n'+,#'/*{}w+/w#cdnr/+,{}r/*de}+,/*{*+,/w{%+,/w#q#n+,/#{l+,/n{n+,/+#n+,/#;
  367. #q#n+,/+k#;*+,/'r :'d*'3,}{w+K w'K:'+}e#';dq#'l q#'+d'K#!/+k#;
  368. q#'r}eKK#}w'r}eKK{nl]'/#;#q#n'){)#}w'){){nl]'/+#n';d}rw' i;# ){nl]!/n{n#'; 
  369. r{#w'r nc{nl]'/#{l,+'K {rw' iK{;[{nl]'/w#q#
  370.  
  371. n'wk nw' iwk{KK{nl]!/w{%'l##w#' i; :{nl]'/*{q#'ld;r'}{nlwb!/*de}'c ;;
  372. {nl'-{}rw]'/+,}##'*}#nc,',#nw]'/+kd'+e}+;
  373. #'rdq#w! nr'/ ') }+}{rl#'{n' ')# }'+}##(!!/")
  374. :
  375. t<-50?
  376. _==*a ?
  377. putchar(31[a]):
  378.  
  379. main(-65,_,a+1)
  380. :
  381. main((*a == '/') + t, _, a + 1 )
  382. :
  383.  
  384. 0<t?
  385.  
  386. main ( 2, 2 , "%s")
  387. :*a=='/'||
  388.  
  389. main(0,
  390.  
  391. main(-61,*a, "!ek;dc i@bK'(q)-[w]*%n+r3#l,{}:\nuwloca-O;m .vpbks,fxntdCeghiry")
  392.  
  393. ,a+1);}
  394.  
  395.  
  396.  
  397. Gopi Reddy's Dumb Code (and dumb name)
  398.  
  399.  
  400. #include<stdio.h>
  401. #include<ctype.h>
  402. #define w printf
  403. #define p while
  404. #define t(s) (W=T(s))
  405. char*X,*B,*L,I[99];M,W,V;D(){W==9?(w("`%.*s' is ",V,X),
  406. t(0)):W==40?(t(0),D(),t(41)):W==42?(t(0),D(),w("ptr to ")):0;
  407. p(W==40?(t(0),w("func returning "),
  408. t(41)):W==91?(t(0)==32?(w("array[0..%d] of ",atoi(X)-1),t(0)):w("array of "),
  409. t(93)):0);}main(){p(w("input: "),B=gets(I))if(t(0)==9)L=X,M=V,t(0),D(),
  410. w("%.*s.\n\n",M,L);}T(s){if(!s||s==W){p(*B==9||*B==32)B++;X=B;V=0;
  411. if(W=isalpha(*B)?9:isdigit(*B)?32:*B++)
  412. if(W<33)p(isalnum(*B))B++,V++;}return W;}
  413.  
  414.  
  415.  
  416.  
  417. Arch Robison's Dumb Code
  418.  
  419.  
  420. #include <stdio.h>
  421. unsigned char w,h,i,l,e,x,y=10,z=10,E[256];
  422. #define whi1e(j,k)  printf(j,k); fflush(stdout)
  423. #define o E[w]
  424.  
  425. main    (c,v)    char *v[]; {
  426. while    (c>=2    ){z = atoi(v[1]),--c;
  427. while     (c>=2    )y = atoi(v[2]),--c;}
  428. whi1e    ("%s"    ,"2.");
  429. while    (--y)    --x;
  430. while    (--x)    --e,--y;
  431. while    (--z)    --x;
  432. while    (--x)    --e,--z;
  433. while    (--w)    {
  434. while    (--x)    --o;}
  435. while    (--z)    {
  436. while    (--x)    --w;
  437. while    (--o)    ;
  438. while    (--w)    ;
  439. while    (--e)    --x;
  440. while    (--x)    --w,--e;
  441. while    (--w)    {
  442. while    (--l)    ;
  443. while    (--i)    --l;--l;
  444. while    (--h)    ;
  445. while    (--y)    --x;
  446. while    (--x)    --h,--y;
  447. while    (--x)    --h;
  448. while    (--h)    {
  449. while    (--o)    --x;
  450. while    (--x)    --l,--o;
  451. while    (l>=w    ){--i;
  452. while    (--w)    --l,--x;
  453. while    (--x)    --w;--l;}}
  454. while    (--o)    ;
  455. while    (--l)    --x;
  456. while    (--x)    --o;}
  457. while    (--i)    --h;
  458. whi1e    ("%x"    ,--h);--e;}
  459. whi1e    ("%s"    ,"\n");}
  460.  
  461.  
  462.  
  463.  
  464. Diomidis Spinellis' Dumb Code
  465.  
  466.  
  467.  
  468. #include "/dev/tty"
  469.  
  470.  
  471.  
  472.     main() {
  473.         printf("Hello world\n");
  474.     }
  475.  
  476.