免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1914 | 回复: 0
打印 上一主题 下一主题

国际C代码混乱大赛^_^ [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-12-10 11:59 |只看该作者 |倒序浏览

转载:http://www.ttian.net/forum/viewtopic.php?id=57
{copyright reservered} “国际C代码混乱大赛”起始于1984年。一位程序员在看了4.2BSD里的Bourne Shell的源代码后感叹道:“天哪!这太恐怖了!”于是他在USENET的新闻组上提出,如果程序员故意将代码写得乱七八糟,那么代码究竟能乱成什么模样?[主办者的介绍]遂就举办了第一届“C代码混乱大赛”。那一届的规则很简单,就是在512字节内,最大程度的写出混乱但是可以顺利编译的完整C代码。之后,这项比赛持续举办了下去。由于是在互联网上举办的,所以参加人数众多,范围也很广。终于它变成了今天的“国际C代码混乱大赛”,并且成为众“黑客”们一展编程功力和与众不同的想象力的舞台。
{copyright reservered} “国际C代码混乱大赛”起始于1984年。一位程序员在看了4.2BSD里的Bourne Shell的源代码后感叹道:“天哪!这太恐怖了!”于是他在USENET的新闻组上提出,如果程序员故意将代码写得乱七八糟,那么代码究竟能乱成什么模样?[主办者的介绍]遂就举办了第一届“C代码混乱大赛”。那一届的规则很简单,就是在512字节内,最大程度的写出混乱但是可以顺利编译的完整C代码。之后,这项比赛持续举办了下去。由于是在互联网上举办的,所以参加人数众多,范围也很广。终于它变成了今天的“国际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 说明:  以上程序请在Unix环境下编译,或使用GCC核心编译器,例如 Dev-C++ 编译器最后补充一句——千万不要在自己的代码中这样做,除非你报名参加这项比赛!copyright announcement:this publishment is under protection of  
GPL
--GNU General Public License,and is published in 天天安全网(
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"]转载:http://www.ttian.net/forum/viewtopic.php?id=57


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/8322/showart_60847.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP