Move 1988-2004 entries into subdirs
We we move 1988-2004 entries from all of a year's winning entries in a single directory to each winner being in their own sub-directory under the given year directory.
This commit is contained in:
1 parent
1e82e8aa3e
commit
d2a42f42e8
478 files changed
No files matched your search
@@ -0,0 +1,184 @@
|
||||
#include <time.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#define __ "Y\n : ! ,.?>"
|
||||
#define D(f) ; } int f(int i) { return
|
||||
#define E(a,b,c,d,e) b##d,c,e,a
|
||||
#define e(a,b,c,d) a##b##c##d
|
||||
#define B *p++ - ' ' || !p++
|
||||
#define _(k) o(*#k - 64)
|
||||
#define G(g,l,k,o,e,d,n,c,i,b,a,f,j,m,p) \
|
||||
a#b#c#d#e#f#g#a#i#j#k#l#m#n#o e,i l##c,m##b; d g j n h(k 30:1); o p f}
|
||||
|
||||
G(E(f ( 9) -s
|
||||
? -s + 'q'
|
||||
? f( 5 ) -s &&'d' -
|
||||
s?U( 3 ) ||_(J)
|
||||
:A ( s- f( 5 ))
|
||||
:(c= 4 *
|
||||
4):
|
||||
|
||||
g(0)D(
|
||||
|
||||
V)c <= 3 *4 + 3&&c && V(X ( i) ) ;
|
||||
}
|
||||
|
||||
int , time ( 0)& , c - 15 || P
|
||||
|
||||
(1
|
||||
|
||||
):0,
|
||||
& ( !!d ( 0 )
|
||||
||(a=! _(S)) ,b= 0 )||
|
||||
a
|
||||
?d(a = 0)
|
||||
? _
|
||||
(I): w ( j =!W(j=_ (V ))) ,
|
||||
|
||||
l(_
|
||||
(Y+ s ) )
|
||||
)e
|
||||
|
||||
(
|
||||
main(){;
|
||||
;;;s , ra,
|
||||
n, d), && C ( j +R( s-j+t( i- 1) )
|
||||
)D( W)m[ c* 4| z( j ) ]
|
||||
&&_( X )E (d ( 0
|
||||
)&& R( 6)/ 6
|
||||
? c= 17|_ ( T )
|
||||
:01,||+
|
||||
, v =i & 3 ^ 2
|
||||
,+j & 3&&W ( j)||y ( 10 )D (k) --
|
||||
j ? k ( O[j]=R(15 ))
|
||||
: 1 D
|
||||
( H )o ( 7+! ! i+3 )+
|
||||
|
||||
i?
|
||||
|
||||
c=i /4 & 63,
|
||||
a= 1
|
||||
|
||||
:0)
|
||||
|
||||
D ( f )( p =M ,q ( i),*p+86)
|
||||
D ( l) * f, B?
|
||||
|
||||
B ?B ?B? B ?B ?B
|
||||
?7 :B?B ?36: 59 * 89 *5 * 2 :B?6587
|
||||
*77 :9 + 2:B ?B?B?9: 5 : 37 : B ? 5 +5:4:20:
|
||||
B?B?B?32
|
||||
|
||||
:e( 4, 3 , 1 *4 * 59 * 1 , 7):B?
|
||||
17: 34 : 19 :B ?
|
||||
8 *2 :B ?
|
||||
2:26: B?
|
||||
B?B ?B ?
|
||||
|
||||
82 *+ 576: B ?33 :22 :5 * 5:3 *4 :3:B ?B ?B? B ?6 +
|
||||
+ 17 : B?B?13:6 : 9 *2:B?15 : 7 *2 :
|
||||
|
||||
B ?
|
||||
B ?
|
||||
27:24: 31 : B?
|
||||
|
||||
|
||||
B? + 29 :,
|
||||
m [a^ 2 ] =T( 8 * 7) ;j= 3
|
||||
;
|
||||
;
|
||||
Q, ;int
|
||||
P ( int
|
||||
i )
|
||||
|
||||
{time_t(x ) =+ 0+
|
||||
time(0) ; j=E( u (i ) : i D(R )e(r ,
|
||||
a ,n ,d) ()% i+1, ( e( l , o,
|
||||
caltim , e ) (& x)) ->e( tm_h , o, u , r)
|
||||
;retur , i?_( W
|
||||
): _( U) D(Y) *p&& *p<3 * 11 ?
|
||||
( ++ p ), n j= + 34 +( j< 6
|
||||
||j>19 ),Y (i)
|
||||
: *p
|
||||
|
||||
D ( F) i == 9 ?1 :
|
||||
F( (i+ 7)% ( 7 + 3) ) +!O[ i
|
||||
]D(u) *p &&* p -32? p ++)
|
||||
D (h ) i ?*++*S=i% ( 38)- 1,
|
||||
D ( A )! n?i&&!g ( (0 ) ) ||K ( j=4| ! !i ) : N(!i )D(
|
||||
Q)++j<
|
||||
|
||||
(s ) &&Q ( t( i)^i )
|
||||
D( U )i>= 0 ?U( i- 1 )||~f (i+1 ) == ~ s
|
||||
&&H (m[c* 4 |z(i)] )
|
||||
:0;D
|
||||
|
||||
|
||||
( X) + b && b<, for (*S = M ; *
|
||||
p; ),
|
||||
|
||||
gets ( L, + 98 , stdin ) ?
|
||||
p= L, E (r( 0 ): 0 ,h( i / 38 ) : 0;D( C)!
|
||||
( m[j]+m [a= i] ) ?m[j[m]= i]=j:0;D (d) !
|
||||
b+(* O-
|
||||
c)*
|
||||
* O; D (z )
|
||||
|
||||
|
||||
-~- ~ -~i +
|
||||
v
|
||||
& 3 D(y)( putchar ) ( i)
|
||||
D ( q ) i& ,!(O[j = i]
|
||||
|| _ ( O))+a :0;
|
||||
D (w)O[ j] ==c && o
|
||||
|
||||
(( !i ++ ? ! !_ (M
|
||||
|
||||
):
|
||||
|
||||
0) +15)|| ++ j<9 &&w (
|
||||
i)D ( r )*p? *p -4?
|
||||
* p -6 ?
|
||||
y(*p <9 + 2?__[
|
||||
* p
|
||||
]: * p+ 7 +79):o( j+1) : o (26+j),&q ( -!
|
||||
* p ++ + i )D(x)i? a=x ( ( -- i)), ++ p )
|
||||
D( t ) i, | C((j=i*
|
||||
T(i-4 )) +R
|
||||
(3 ) + 4 )
|
||||
D(J) !j --E( 0 D ( K )!-!N, || i &,
|
||||
_( R ) :i* c== (O
|
||||
[ j ] ) &&n==f (j+ 6 + 5 * 4)?O
|
||||
[j]= !i * c-_ ( L) :J(i )
|
||||
D ( N ) j=9, & d(0 )? j= 6 | ! i , J(i )D
|
||||
( o)(*S = p , ++ S,p = M , r (q (i) ),-- S, p = *S))
|
||||
( (l (_ (Q )),n =s,i ^5 ) ) ;, E(j ,
|
||||
sign , v ,ed ( b ) ;;
|
||||
int c =1 ,O[9])
|
||||
;int( s
|
||||
)=
|
||||
E (n ;char, 1 ,a,6 ,o ())* Z[
|
||||
E(M [37 * 9 *3 ] ,0,L [ 99] ,3] , * *S=Z ) ;
|
||||
E (*p=+1 ,char( m)[6 , co , 4 ],ol)
|
||||
+,
|
||||
V ( v=*O = k( j= 9 )) ;
|
||||
return ! c&& - ~ ~ - -! printf
|
||||
( ( "%d \n") , F (P ( 0) +6) *50 + ! ! b*
|
||||
( +b - (int)time ( 0 )) )
|
||||
;, ( b= 60 + time ( 0)+ 60 * 4) ;, n =Y
|
||||
(u (s =Y (i) ) )
|
||||
|
||||
: (exit( 0)
|
||||
,i)D( g )x ( _(N) ^ 9)? !( a =0) : _ ( P )D (T)! i|,
|
||||
(2); s=35; Q(3);
|
||||
|
||||
s=59; Q(6);
|
||||
|
||||
|
||||
a=1;
|
||||
|
||||
|
||||
|
||||
|
||||
)
|
||||
@@ -0,0 +1,122 @@
|
||||
Best Of Show:
|
||||
|
||||
Jason Orendorff
|
||||
5 Buchanan St.
|
||||
Nashua, NH 03060
|
||||
USA
|
||||
|
||||
http://www.jorendorff.com/
|
||||
|
||||
|
||||
Judge's Remarks:
|
||||
|
||||
To build:
|
||||
|
||||
make jason
|
||||
|
||||
Try:
|
||||
|
||||
./jason
|
||||
|
||||
You are in a maze of twisty little passages, all alike.
|
||||
|
||||
The really amazing part of this is tha it's a text adventure, and there's
|
||||
not a single word in the source that isn't a C keyword or function name,
|
||||
being used as such.
|
||||
|
||||
The interface isn't very tolerant of errors, but you can't really
|
||||
expect that from something this small.
|
||||
|
||||
Of particular interest: Go ahead, run it through the preprocessor. You
|
||||
*still* won't see the words that are used in the game.
|
||||
|
||||
|
||||
Selected Author's Comments:
|
||||
|
||||
TED shroyer came up with the idea that made it possible to hide all
|
||||
the text. Thanks, TED. You won. :)
|
||||
|
||||
|
||||
$ cc -o prog prog.c
|
||||
$ ./prog
|
||||
you are in a maze of twisty little passages
|
||||
caves lead: left forward back
|
||||
you see
|
||||
a lamp
|
||||
> _
|
||||
|
||||
This program is a rather nostalgic little labyrinth game. Start
|
||||
out by typing "get lamp", then use the direction words "left",
|
||||
"right", "forward", and "back" to explore the caves. Note that
|
||||
these words can refer to different passages depending on which way
|
||||
you're facing. "back" always takes you back the way you came.
|
||||
Type "quit" to quit.
|
||||
|
||||
The maze is randomly generated each time you play. The algorithm
|
||||
ensures that you start at least 6 hops away from the exit. All
|
||||
passages are two-way.
|
||||
|
||||
(There is a trick, well-known among adventure game fans, to
|
||||
keeping one's bearings in games like this. Unless you know the
|
||||
trick, it can be very difficult to find your way around. Try it
|
||||
out first; I'll give away the secret at the bottom of this
|
||||
document.)
|
||||
|
||||
The goal is to collect 8 treasures (plus the lamp) and escape into
|
||||
the sunlight - or moonlight, as the case may be. After a few
|
||||
minutes, the lamp runs out of oil, and things become perilous.
|
||||
|
||||
If you manage to escape, you score 50 points for your hide, 50
|
||||
points per item, and bonus points for speed.
|
||||
|
||||
Why I think this program is obfuscated:
|
||||
|
||||
* 70% more # symbols than the average entry.
|
||||
|
||||
* Where are all the messages? The game is downright chatty for
|
||||
only having two string literals ("%d \n" and "Y\n : ! ,.?>").
|
||||
|
||||
* There is exactly one loop in the program, a for loop, and it is
|
||||
clearly the product of a deranged mind. Running the
|
||||
preprocessor only makes it worse.
|
||||
|
||||
* Microsoft Visual C++ won't even compile this program, even
|
||||
though it is plain ANSI C (*innocent look*) and limits itself to
|
||||
the most standard and portable of the standard library
|
||||
facilities.
|
||||
|
||||
* Most of the whitespace is significant, so attempts to
|
||||
beautify it can easily lead to segmentation faults.
|
||||
|
||||
* Attempts to replace the one-character identifiers with longer,
|
||||
more meaningful names will likewise cause problems. In fact,
|
||||
simply changing all the Y's to Z's and vice versa results in
|
||||
some unexpected side effects.
|
||||
|
||||
When all warnings are enabled, some compilers express the desire
|
||||
to see a few more parentheses. I respectfully submit that there are
|
||||
plenty of parentheses in the program (370 in all.) Besides, any
|
||||
more would put me over the size limit. gcc also generates a
|
||||
warning about some calculations not being used. Having just spent
|
||||
19 hours staring at this program, sweating over every character, I
|
||||
swear gcc is wrong.
|
||||
|
||||
The program is formatted as a poem, to make it more readable.
|
||||
I find the plaintive chorus "B? B?" particularly poignant.
|
||||
Also, smiley faces are formatted flush left. (If you don't find
|
||||
the game entertaining, see if you can find
|
||||
|
||||
the fish scales Q)++j<
|
||||
the shooting star -~- ~ -~i +
|
||||
|
||||
in the source code.)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
[GAME STRATEGY SPOILER: The trick, of course, is to drop items in
|
||||
empty rooms to mark them. That way you usually know if you're in a
|
||||
room you've seen before. It greatly aids mapping.]
|
||||
Reference in new issue
Block a user