15 files changed
+61
-74
No files matched your search
+1
-1
@@ -6,7 +6,7 @@ on how to compile the winner and how to run the winning program.
|
|||||||
Look at the winning source and try to figure how it does what it does!
|
Look at the winning source and try to figure how it does what it does!
|
||||||
You may then wish to look at the Author's comments for even more details.
|
You may then wish to look at the Author's comments for even more details.
|
||||||
|
|
||||||
The rules for 1986 suggested categories due to the success of the 1985
|
The [rules for 1986](rules.txt) suggested categories due to the success of the 1985
|
||||||
judging method. The maximum size was increased from 512 to 1024 bytes.
|
judging method. The maximum size was increased from 512 to 1024 bytes.
|
||||||
Larry Bassel joined as the second official judge.
|
Larry Bassel joined as the second official judge.
|
||||||
|
|
||||||
|
|||||||
@@ -10,13 +10,20 @@ USA
|
|||||||
|
|
||||||
make all
|
make all
|
||||||
|
|
||||||
|
### Try:
|
||||||
|
|
||||||
|
sh applin.c
|
||||||
|
|
||||||
|
./applin
|
||||||
|
|
||||||
|
|
||||||
## Judges' comments:
|
## Judges' comments:
|
||||||
|
|
||||||
Compile and/or execute as directed by the documentation.
|
|
||||||
|
|
||||||
The judges were so amused by this little program that we created an
|
The judges were so amused by this little program that we created an
|
||||||
award just for it. This program is portable to the C and Fortran 77
|
award just for it. This program is portable to the C and Fortran 77
|
||||||
compilers as well as executable by the bourne shell!
|
compilers as well as executable by the Bourne shell!
|
||||||
|
|
||||||
|
|
||||||
Copyright (c) 1986, Landon Curt Noll & Larry Bassel.
|
Copyright (c) 1986, Landon Curt Noll & Larry Bassel.
|
||||||
All Rights Reserved. Permission for personal, educational or non-profit use is
|
All Rights Reserved. Permission for personal, educational or non-profit use is
|
||||||
|
|||||||
@@ -184,6 +184,7 @@ all: ${DATA} ${TARGET}
|
|||||||
supernova deep_magic magic charon pluto
|
supernova deep_magic magic charon pluto
|
||||||
|
|
||||||
${PROG}: ${PROG}.c
|
${PROG}: ${PROG}.c
|
||||||
|
@echo "NOTE: this entry is very likely to dump core after its output."
|
||||||
${CC} ${CFLAGS} $< -o $@ ${LIBS}
|
${CC} ${CFLAGS} $< -o $@ ${LIBS}
|
||||||
|
|
||||||
# alternative executable
|
# alternative executable
|
||||||
|
|||||||
@@ -10,6 +10,8 @@ Sweden
|
|||||||
|
|
||||||
make all
|
make all
|
||||||
|
|
||||||
|
NOTE: this entry is very likely to core dump after its output.
|
||||||
|
|
||||||
## Judges' comments:
|
## Judges' comments:
|
||||||
|
|
||||||
This program computes a specific mathematical value. Simply compile
|
This program computes a specific mathematical value. Simply compile
|
||||||
|
|||||||
@@ -6,21 +6,21 @@ Walter Bright
|
|||||||
|
|
||||||
make all
|
make all
|
||||||
|
|
||||||
NOTE: The original entry may be built with "make alt".
|
### Try:
|
||||||
|
|
||||||
|
./bright bright.c
|
||||||
|
|
||||||
|
./bright bright
|
||||||
|
|
||||||
## Judges' comments:
|
## Judges' comments:
|
||||||
|
|
||||||
Compile this program and give filenames as arguments. For example try:
|
Compile this program and give a filename as an argument.
|
||||||
|
|
||||||
./bright bright.c
|
|
||||||
./bright bright
|
|
||||||
|
|
||||||
Mr. Bright exploits the C pre-processor, similar variables and
|
Mr. Bright exploits the C pre-processor, similar variables and
|
||||||
excessive shifting to obfuscate an otherwise useful binary display
|
excessive shifting to obfuscate an otherwise useful binary display
|
||||||
program. This gives you a small example of what it is like to
|
program. This gives you a small example of what it is like to
|
||||||
maintain the Bourne shell! :-}
|
maintain the Bourne shell! :-}
|
||||||
|
|
||||||
NOTE: To compile with modern compilers, you make need to: make alt.
|
|
||||||
|
|
||||||
Copyright (c) 1986, Landon Curt Noll & Larry Bassel.
|
Copyright (c) 1986, Landon Curt Noll & Larry Bassel.
|
||||||
All Rights Reserved. Permission for personal, educational or non-profit use is
|
All Rights Reserved. Permission for personal, educational or non-profit use is
|
||||||
|
|||||||
@@ -1,47 +0,0 @@
|
|||||||
#include <stdio.h>
|
|
||||||
#define O1O printf
|
|
||||||
#define OlO putchar
|
|
||||||
#define O10 exit
|
|
||||||
#define Ol0 strlen
|
|
||||||
#define QLQ fopen
|
|
||||||
#define OlQ fgetc
|
|
||||||
#define O1Q abs
|
|
||||||
#define QO0 for
|
|
||||||
typedef char lOL;
|
|
||||||
|
|
||||||
lOL*QI[] = {"Use:\012\011dump file\012","Unable to open file '\x25s'\012",
|
|
||||||
"\012"," ",""};
|
|
||||||
|
|
||||||
main(I,Il)
|
|
||||||
lOL*Il[];
|
|
||||||
{ FILE *L;
|
|
||||||
unsigned lO;
|
|
||||||
int Q,OL[' '^'0'],llO = EOF,
|
|
||||||
|
|
||||||
O=1,l=0,lll=O+O+O+l,OQ=056;
|
|
||||||
lOL*llL="%2x ";
|
|
||||||
(I != 1<<1&&(O1O(QI[0]),O10(1011-1010))),
|
|
||||||
((L = QLQ(Il[O],"r"))==0&&(O1O(QI[O],Il[O]),O10(O)));
|
|
||||||
lO = I-(O<<l<<O);
|
|
||||||
while (L-l,1)
|
|
||||||
{ QO0(Q = 0L;((Q &~(0x10-O))== l);
|
|
||||||
OL[Q++] = OlQ(L));
|
|
||||||
if (OL[0]==llO) break;
|
|
||||||
O1O("\0454x: ",lO);
|
|
||||||
if (I == (1<<1))
|
|
||||||
{ QO0(Q=Ol0(QI[O<<O<<1]);Q<Ol0(QI[0]);
|
|
||||||
Q++)O1O((OL[Q]!=llO)?llL:QI[lll],OL[Q]);/*"
|
|
||||||
O10(QI[1O])*/
|
|
||||||
O1O(QI[lll]);{}
|
|
||||||
}
|
|
||||||
QO0 (Q=0L;Q<1<<1<<1<<1<<1;Q+=Q<0100)
|
|
||||||
{ (OL[Q]!=llO)? /* 0010 10lOQ 000LQL */
|
|
||||||
((D(OL[Q])==0&&(*(OL+O1Q(Q-l))=OQ)),
|
|
||||||
OlO(OL[Q])):
|
|
||||||
OlO(1<<(1<<1<<1)<<1);
|
|
||||||
}
|
|
||||||
O1O(QI[01^10^9]);
|
|
||||||
lO+=Q+0+l;}
|
|
||||||
}
|
|
||||||
D(l) { return l>=' '&&l<='\~';
|
|
||||||
}
|
|
||||||
+2
-4
@@ -184,12 +184,10 @@ all: ${DATA} ${TARGET}
|
|||||||
supernova deep_magic magic charon pluto
|
supernova deep_magic magic charon pluto
|
||||||
|
|
||||||
${PROG}: ${PROG}.c
|
${PROG}: ${PROG}.c
|
||||||
|
@echo "NOTE: this entry uses gets() so you might get a warning about this"
|
||||||
|
@echo " when compiling and running this program with some systems."
|
||||||
${CC} ${CFLAGS} $< -o $@ ${LIBS}
|
${CC} ${CFLAGS} $< -o $@ ${LIBS}
|
||||||
|
|
||||||
# alternative executable
|
|
||||||
#
|
|
||||||
alt: ${DATA} ${ALT_TARGET}
|
|
||||||
@${TRUE}
|
|
||||||
|
|
||||||
# data files
|
# data files
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -9,9 +9,15 @@ UK
|
|||||||
|
|
||||||
make all
|
make all
|
||||||
|
|
||||||
### To run
|
|
||||||
|
NOTE: this entry uses gets() so you might get a warning about this when
|
||||||
|
compiling and running this program with some systems.
|
||||||
|
|
||||||
|
### Try:
|
||||||
|
|
||||||
./hague
|
./hague
|
||||||
|
[enter some text]
|
||||||
|
|
||||||
|
|
||||||
## Judges' comments:
|
## Judges' comments:
|
||||||
|
|
||||||
|
|||||||
@@ -184,7 +184,6 @@ all: ${DATA} ${TARGET}
|
|||||||
supernova deep_magic magic charon pluto
|
supernova deep_magic magic charon pluto
|
||||||
|
|
||||||
${PROG}: ${PROG}.c
|
${PROG}: ${PROG}.c
|
||||||
@echo "NOTE: This entry uses non-standard args to main() that do not work with modern compilers."
|
|
||||||
${CC} ${CFLAGS} $< -o $@ ${LIBS}
|
${CC} ${CFLAGS} $< -o $@ ${LIBS}
|
||||||
|
|
||||||
# alternative executable
|
# alternative executable
|
||||||
|
|||||||
@@ -9,7 +9,12 @@ USA
|
|||||||
|
|
||||||
make all
|
make all
|
||||||
|
|
||||||
NOTE: This entry uses non-standard args to main() that do not work with modern compilers.
|
|
||||||
|
NOTE: we could not compile this entry under modern macOS but it will work
|
||||||
|
fine under linux. It likely fails to compile under macOS because its gcc is
|
||||||
|
actually just clang which is more strict about the type of the second
|
||||||
|
argument of main(). If you have gcc under macOS it might work just as well.
|
||||||
|
|
||||||
|
|
||||||
## Judges' comments:
|
## Judges' comments:
|
||||||
|
|
||||||
@@ -18,7 +23,6 @@ performed in a very complex way. The judges and the author defy you
|
|||||||
do determine how it does it. It is a good thing that K&R didn't use
|
do determine how it does it. It is a good thing that K&R didn't use
|
||||||
this version as the first C program!
|
this version as the first C program!
|
||||||
|
|
||||||
NOTE: This entry requires a non-standard K&R C compiler to compile.
|
|
||||||
|
|
||||||
Copyright (c) 1986, Landon Curt Noll & Larry Bassel.
|
Copyright (c) 1986, Landon Curt Noll & Larry Bassel.
|
||||||
All Rights Reserved. Permission for personal, educational or non-profit use is
|
All Rights Reserved. Permission for personal, educational or non-profit use is
|
||||||
|
|||||||
@@ -10,7 +10,11 @@ Paoli, PA.
|
|||||||
|
|
||||||
make all
|
make all
|
||||||
|
|
||||||
NOTE: This entry uses non-standard args to main() that do not work with modern compilers.
|
|
||||||
|
NOTE: we could not compile this entry under modern macOS but it will work
|
||||||
|
fine under linux. It likely fails to compile under macOS because its gcc is
|
||||||
|
actually just clang which is more strict about the type of the second
|
||||||
|
argument of main(). If you have gcc under macOS it might work just as well.
|
||||||
|
|
||||||
# Judges' comments:
|
# Judges' comments:
|
||||||
|
|
||||||
@@ -22,7 +26,6 @@ This program was selected for the 1987 t-shirt collection.
|
|||||||
|
|
||||||
This program is known to give some C compilers a problems.
|
This program is known to give some C compilers a problems.
|
||||||
|
|
||||||
NOTE: This entry requires a non-standard K&R C compiler to compile.
|
|
||||||
|
|
||||||
Copyright (c) 1986, Landon Curt Noll & Larry Bassel.
|
Copyright (c) 1986, Landon Curt Noll & Larry Bassel.
|
||||||
All Rights Reserved. Permission for personal, educational or non-profit use is
|
All Rights Reserved. Permission for personal, educational or non-profit use is
|
||||||
|
|||||||
@@ -7,14 +7,22 @@ San Diego, Ca
|
|||||||
|
|
||||||
## To build:
|
## To build:
|
||||||
|
|
||||||
|
|
||||||
make all
|
make all
|
||||||
|
|
||||||
|
|
||||||
|
### Try:
|
||||||
|
|
||||||
|
./pawka
|
||||||
|
|
||||||
|
|
||||||
## Judges' comments:
|
## Judges' comments:
|
||||||
|
|
||||||
The judges found this entry to be one of hardest to read without the
|
The judges found this entry to be one of hardest to read without the
|
||||||
aid of `/lib/cpp` and a good editor. When run, the program asks if it
|
aid of `/lib/cpp` and a good editor. When run, the program asks if it
|
||||||
is obfuscated, of all things!
|
is obfuscated, of all things!
|
||||||
|
|
||||||
|
|
||||||
Copyright (c) 1986, Landon Curt Noll & Larry Bassel.
|
Copyright (c) 1986, Landon Curt Noll & Larry Bassel.
|
||||||
All Rights Reserved. Permission for personal, educational or non-profit use is
|
All Rights Reserved. Permission for personal, educational or non-profit use is
|
||||||
granted provided this this copyright and notice are included in its entirety
|
granted provided this this copyright and notice are included in its entirety
|
||||||
|
|||||||
@@ -6,16 +6,20 @@ Jan Stein
|
|||||||
|
|
||||||
make all
|
make all
|
||||||
|
|
||||||
Judges' comments:
|
|
||||||
|
|
||||||
> NOTE: to avoid problems with news and mail, the single line was split
|
## Judges' comments:
|
||||||
> into 3 lines. Join all lines into a single line to recreate
|
|
||||||
> the original file.
|
NOTE: to avoid problems with news and mail, the single line was split
|
||||||
|
into 3 lines. Join all lines into a single line to recreate
|
||||||
|
the original file.
|
||||||
|
|
||||||
|
|
||||||
Try the program with the following argument:
|
Try the program with the following argument:
|
||||||
|
|
||||||
|
|
||||||
./stein ^N^N
|
./stein ^N^N
|
||||||
|
|
||||||
|
|
||||||
(^N is ASCII control-N). One some machines, ^M^L is needed to get it to
|
(^N is ASCII control-N). One some machines, ^M^L is needed to get it to
|
||||||
output cleanly. Your system may require another set of characters.
|
output cleanly. Your system may require another set of characters.
|
||||||
In time, you will figure out what it does. :-)
|
In time, you will figure out what it does. :-)
|
||||||
|
|||||||
+3
-2
@@ -93,7 +93,7 @@ ARCH=
|
|||||||
|
|
||||||
# Defines that are needed to compile
|
# Defines that are needed to compile
|
||||||
#
|
#
|
||||||
CDEFINE=
|
CDEFINE= -traditional-cpp
|
||||||
#CDEFINE= -DIOCCC
|
#CDEFINE= -DIOCCC
|
||||||
|
|
||||||
# Include files that are needed to compile
|
# Include files that are needed to compile
|
||||||
@@ -185,7 +185,8 @@ all: ${DATA} ${TARGET}
|
|||||||
supernova deep_magic magic charon pluto
|
supernova deep_magic magic charon pluto
|
||||||
|
|
||||||
${PROG}: ${PROG}.c
|
${PROG}: ${PROG}.c
|
||||||
@echo "NOTE: This entry uses non-standard args to main() that do not work with modern compilers."
|
@echo "NOTE: This entry will not compile when using clang because it does not support"
|
||||||
|
@echo " -traditional-cpp but it should compile with gcc."
|
||||||
${CC} ${CFLAGS} $< -o $@ ${LIBS}
|
${CC} ${CFLAGS} $< -o $@ ${LIBS}
|
||||||
|
|
||||||
# alternative executable
|
# alternative executable
|
||||||
|
|||||||
+3
-2
@@ -10,9 +10,10 @@ US of A
|
|||||||
|
|
||||||
make all
|
make all
|
||||||
|
|
||||||
NOTE: This entry uses non-standard args to main() that do not work with modern compilers.
|
|
||||||
|
|
||||||
NOTE: This entry requires a non-standard K&R C compiler to compile.
|
NOTE: On modern systems this entry requires the option `-traditional-cpp` which
|
||||||
|
clang does not support. Please be advised that gcc under macOS is actually
|
||||||
|
clang so this will not compile with the default gcc under macOS.
|
||||||
|
|
||||||
## Judges' comments:
|
## Judges' comments:
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user