Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/17/84 chuqui version 1.7 9/23/84; site nsc.UUCP Path: utzoo!utcs!lsuc!pesnta!amd!nsc!chongo From: chongo@nsc.UUCP (Landon Noll) Newsgroups: net.lang.c Subject: The winners from the 1984 Obfuscated C Code contest Message-ID: <2759@nsc.UUCP> Date: Fri, 24-May-85 23:37:45 EDT Article-I.D.: nsc.2759 Posted: Fri May 24 23:37:45 1985 Date-Received: Sat, 25-May-85 13:20:57 EDT References: <2749@nsc.UUCP> Reply-To: chongo@nsc.UUCP (Landon Noll) Distribution: net Organization: Rational Swamiconductor, Sanivale Lines: 113 Summary: Several people has asked about what the 1984 winners were like. You will find them below. BTW, I should point out that the rules for this year give more credit to lint/machine independent solutions. (though good examples will be allowed as long as my Vax and/or 4.2BSD system can run them!) Thus the winner for 1984 would not be rated as high under this years rules. Several good entries have already come in for 1985. Good luck! ---The Winners of the 1984 Obfuscated C Code Contest--- honorable mention for 1984: ------------------------------------------------------------------------------ int i;main(){for(;i["]>1) ;for(h= 0;h*h<= g;++h); --h;c=( (h+=g>h *(h+1)) -1)>>1; while(d <=g){ ++O;for (f=0;f< O&&d<=g ;++f)a[ b<<5|c] =d++,b+ =e;for( f=0;f Second place award for 1984: --------------------------------------------------------------------------- #define x = #define double(a,b) int #define char k['a'] #define union static struct extern int floor; double (x1, y1) b, char x {sizeof( double(%s,%D)(*)()) ,}; struct tag{int x0,*xO;} *main(i, dup, signal) { { for(signal=0;*k * x * __FILE__ *i;) do { (printf(&*"'\",x); /*\n\\", (*((double(tag,u)(*)())&floor))(i))); goto _0; _O: while (!(char < xO));/*} ; } */}}} ------------------------------------------------------------------------------- By: Dave Decot hplabs!hpda!hpdsd!decot First place award for 1984 goes to: ------------------------------------------------------------------------ /* Portable between VAX11 && PDP11 */ short main[] = { 277, 04735, -4129, 25, 0, 477, 1019, 0xbef, 0, 12800, -113, 21119, 0x52d7, -1006, -7151, 0, 0x4bc, 020004, 14880, 10541, 2056, 04010, 4548, 3044, -6716, 0x9, 4407, 6, 5568, 1, -30460, 0, 0x9, 5570, 512, -30419, 0x7e82, 0760, 6, 0, 4, 02400, 15, 0, 4, 1280, 4, 0, 4, 0, 0, 0, 0x8, 0, 4, 0, ',', 0, 12, 0, 4, 0, '#', 0, 020, 0, 4, 0, 30, 0, 026, 0, 0x6176, 120, 25712, 'p', 072163, 'r', 29303, 29801, 'e' }; ------------------------------------------------------------------------------ Sjoerd Mullender Robbert van Renesse Both @ Vrije Universiteit, Amsterdam, the Netherlands. ..!decvax!mcvax!vu44!{sjoerd,cogito} well anyway, that was 1984. What will 1985 be like? chongo <> /\../\ -- no comment is a comment.