- 論壇徽章:
- 0
|
轉(zhuǎn)載:http://www.ttian.net/forum/viewtopic.php?id=57
{copyright reservered} “國際C代碼混亂大賽”起始于1984年。一位程序員在看了4.2BSD里的Bourne Shell的源代碼后感嘆道:“天哪!這太恐怖了!”于是他在USENET的新聞組上提出,如果程序員故意將代碼寫得亂七八糟,那么代碼究竟能亂成什么模樣?[主辦者的介紹]遂就舉辦了第一屆“C代碼混亂大賽”。那一屆的規(guī)則很簡單,就是在512字節(jié)內(nèi),最大程度的寫出混亂但是可以順利編譯的完整C代碼。之后,這項(xiàng)比賽持續(xù)舉辦了下去。由于是在互聯(lián)網(wǎng)上舉辦的,所以參加人數(shù)眾多,范圍也很廣。終于它變成了今天的“國際C代碼混亂大賽”,并且成為眾“黑客”們一展編程功力和與眾不同的想象力的舞臺。
{copyright reservered} “國際C代碼混亂大賽”起始于1984年。一位程序員在看了4.2BSD里的Bourne Shell的源代碼后感嘆道:“天哪!這太恐怖了!”于是他在USENET的新聞組上提出,如果程序員故意將代碼寫得亂七八糟,那么代碼究竟能亂成什么模樣?[主辦者的介紹]遂就舉辦了第一屆“C代碼混亂大賽”。那一屆的規(guī)則很簡單,就是在512字節(jié)內(nèi),最大程度的寫出混亂但是可以順利編譯的完整C代碼。之后,這項(xiàng)比賽持續(xù)舉辦了下去。由于是在互聯(lián)網(wǎng)上舉辦的,所以參加人數(shù)眾多,范圍也很廣。終于它變成了今天的“國際C代碼混亂大賽”,并且成為眾“黑客”們一展編程功力和與眾不同的想象力的舞臺。下面是歷年的獲獎作品。年代 文件名 概要
1984下載
anonymous prints hello world, where read is writedecot prints garbage, weird cpp defines (keywords for others)laman prints spiralling numbers, laid out in columnsmullender hardcoded vax and pdp-11 code to move :-) across the screen
1985下載
applin one-liner to print hello world, with execlpaugust cpp obfuscated, compressed, main-recursive primes in binarylycklama heavily cpped with o_oo identifiers, scrolls text rightshapiro two defines, one 7-liner, results in a mazesicherman rot13 with strange #defs that create comment headers etc.
1986下載
applin hello world works under cc, /bin/sh, and f77august struct-heavy e-computation, memory allocation with sbrkbright hex dump, cpp compressed, uses lost of hague morse code filter written with 'DIT DAH _DIT DIT_DAH'holloway prints hello world! via a recursive mainmarshall train engine-shaped program prints "choo choo"pawka prints 'obfuscated?' big, uses xyyyx idents...stein prints HHMMSS in UTC timewall dvorak keyboard emulator
1987下載
biggar program: "P;" defined on command lineheckbert obfuscated fold programhines counts goto's, all ids anagrams of 'goto', all flow w gotokorn one-liner that prints a message on a Un*x systemlievaart very good othello playerwall roman numeral -> decimal and vice versa conversionwestley individually palindromic lines prints a palindrome
1988下載
applin massive #define stuff, includes itself; prints table of primesdale prints command line, using lots of system callsisaak table driven table of the elements; cpp, self-inclusionlitmaath sorts each arg using only argc, argv, and 'while();'phillipps 'first day of christmas', tables, heavily main() callingreddy prints name of 'char *(*(foo[16])();', compressedrobison print e in any base, uses only --, >=, and while()spinellis #include "/dev/tty"westley prints '3.141', circle made of '_-_-_-_' in layout
1989下載
fubar self-reconstructing, recompiling factorial programjar.1 char*_="Hello world.
";jar.2 lisp interpreter, compressedovdluhe monkey-typer following template, 'APE' identifierspaul print fibonacci base 2 by simulating turing machinerobison apl-expression interpreter (binary), written in C--roemer prints e, script-pi shaped layout, _31415 identifierstromp squished tetrisvanb one-liner prints all subsets of argumentswestley reversible, rot13able program that reverses and/or rot13s.
1990下載
baruch short prog to solve N-queens problemcmills squished blackjack gamedds basic interpreter, heavily compresseddg rot13 done with strange cpp macrosjaw compress & atob standinspjr the quick brown fox... cppd, structs of functions scjones trigraph-abusing self-reproducing programstig nested-comment tester (all on command line)tbr simple compressed shell, silly layouttheorem numerically solves the equation y'=f(x,y)westley poetic exchange between lovers, prints "luvs me, luvs not"
1991下載
ant compressed vi-like editorbrnstnd sorta stack languagebuzzard walk thru a maze from a first person point of viewcdupont prints a message without vowelsdavidguy plays life on a root window, doesn't need Xlib or include filesdds basic compiler, heavily compressedfine rot13s lines of inputrince game with sprites, boulders, dimonds, and keyswestley plays tic-tac-toe, compile output for next move, prints board
1992下載
adrian grep-like utility using a state machine transition languagealbert factors multi-precision numbers with factors ant make utilitybuzzard.1 print factorial, gcd or prime test using a Babbage-like enginebuzzard.2 forth-like stack machinegson anagram generatorimc Mandelbrot/Julia drawerkivinen X11 space invaders, dropout and knockout gameslush prints "Hello, World" using error messagesmarangon game to balance a grid of digits to all 5'snathan obfuscation by (trivial) encryption (source not exported)vern plays chesswestley print ASCII world map and mark a location by lat/long
1993下載
ant egrep utility with Posix-like documentationcmills X11 program that shatters and bounces windowsdgibson plays the game of like using cppejb tower of Hanoi and patience pizzlejonth game of Tetrisleo game of mastermind (cows & bulls)lmfjyh source is the filename, prints value of __FILE__plummer prints numbers up to a given valuerince game state machine language, comes with a number of gamesschnitzi answers questions about English text in a filevanb calculator that prints in octal
1994下載
dodsond1 plays a game of othellododsond2 Hunt the Wumpus (gziped source)horton Plot cubic equations on a ttyimc print a random n by n magic squareldb print a random line from stdinschnitzi flips stdin along a diagonal (source mirrored along diagonal)shapiro print time of day on an ttysmr world's smallest self reproducing programtvr interactive fractals for the X Window Systemweisberg prints prime numberswestley Adventure/Dungeon like game played via the C pre-processor
1995下載
cdua Generate a maze on the scren and then solve itdodsond1 Text to "Pig Latin" translatordodsond2 Interactive 3D Mazeesde Searches for words in a file which have the same Soundex codegarry Environment-expansion and binary output via escaped env varsheathbar 16 bit addition the easy/hard wayleob Output interesting patterns and cycles in PostScriptmakarios Emits the base 8 representation of prime palindromic in base 8savastio Infinite-precision factorial calculatorschnitzi Find divisors: where a core dump is a feature, not a bugspinellis Abusing the rulesvanschnitz Towers of Hanoi via the C pre-processor
1996下載
august Subset of C compiler and byte code interpreterdalbec Generator of strong probable-primes to a given baseeldby Flying 3D spheres in an ASCII displaygandalf Displays the ASCII and 8 bit character tableshuffman Braille to ASCII and vice versajonth X based dual player tic-tac-toe gamercm Gunzip equivalentschweikh1 Gunzip equivalentschweikh2 Search for a limited class of expressions that equal a constantschweikh3 Determins the memory allocation honesty of the OSwestley Shows the time on clock with a configurable face and style1997----There is no contest in this year.
1998下載
banks A flight simulator!bas1 Outputs a gziped 3D beam maze in Postscriptbas2 determines the size of stdin under IOCCC sizing ruleschaos Rotates and zooms an object using ASCII graphics df A word guessing gamedlowe Pootifies stdin (useful to view Microsoft html files)dloweneil A very addictive ASCII poot gamedorssel ASCII / Morse code translatorfanf Translates Lambda expressions into combinator expressionsschnitzi Prints a C program that sorts arguments using strange functionsschweikh1 Tests to see if your compiler and headers are standardschweikh2 Prints random 0's and 1's; causes some gcc's as passes to chokeschweikh3 Finds duplicate files that waste disk spacetomtorfs CRC generator1999----There is no contest in this year,too.
2000下載
anderson ASCII to semaphore code convertorbellard Prints M6972593 (2^6972593-1) by Modular Fast Fourier Transformbmeyer An image compressorbriddlebane Verbally abuses the userdhyang Saitou Hajime image that prints a prog that prints a prog ...dlowe A dc-style calculator that uses embedded Perljarijyrki An X-based spreadsheet program with graphing features!natori Phase of the moonprimenum Source with English words that looks like a prime testerrince Plots the positions of the four Galilean moons of Jupiterrobison Highly Compressed Program for Playing Hygienic Checkersschneiderwent Prints the aproximate time in wordsthadgavin Prints a dazzeling moving image under multiple interfacestomx C source, shell program and Makefile 說明: 以上程序請?jiān)赨nix環(huán)境下編譯,或使用GCC核心編譯器,例如 Dev-C++ 編譯器最后補(bǔ)充一句——千萬不要在自己的代碼中這樣做,除非你報(bào)名參加這項(xiàng)比賽!copyright announcement:this publishment is under protection of
GPL
--GNU General Public License,and is published in 天天安全網(wǎng)(
http://www.ttian.net
) by lzp729.every person or organization CAN NOT republish this article in any publishment or web site withoutdeclaration of this announcement.All files are stored in The Free Software Library(
http://yea.xiloo.com
)
[color="#000000"]轉(zhuǎn)載:http://www.ttian.net/forum/viewtopic.php?id=57
本文來自ChinaUnix博客,如果查看原文請點(diǎn):http://blog.chinaunix.net/u/8322/showart_60847.html |
|