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,31 @@
|
||||
#include <stdio.h>
|
||||
#define iii\
|
||||
( I ) if ( ii(I,6\
|
||||
) )I [ strlen(I ) -1]=!1
|
||||
int ii(ll,lll ) char*ll; {
|
||||
|
||||
char *l="\"; !l ? 1.1 : l; l,printf(";int l1=1-/*+&|"); &+|-*/1,li=!1;while
|
||||
|
||||
( lll>l1 ) li|=! ( l[3*l1+++3
|
||||
] -ll[strlen ( ll)-1] ) ;return
|
||||
( li ) ;}main ( ll,lll
|
||||
) char*lll[];{char l1 [ 111][21],li1[111][21 ] ,il1[111],i1l
|
||||
[ 111 ] ;int lli,l11,l1l,li/* ( */,ll1,il,l;FILE*f;if(ll-2
|
||||
) {f=fopen ( lll[1],"r" ) ;lli=l=ll1=il=!1;while
|
||||
( fscanf(f,"%s",l1[lli] ) +1){li=ii ( l1[lli],3
|
||||
) ;iii ( l1[lli] ) ;l1l=l11=!1;while
|
||||
( l1l>-ll ) {iii ( lll[-l1l]
|
||||
) ;strcasecmp ( lll[-l1l--],l1[lli] ) ||
|
||||
( l11=++il ) ;}l11||lli++;if ( li
|
||||
) {if ( ll1<il ) {ll1=il;l1l=l=lli;while
|
||||
( l1l-- ) strcpy ( li1[l1l],l1[l1l]
|
||||
) ;}il=lli=!1;}}if ( !ll1 ) puts
|
||||
( " Beats me." ) ;else if ( !l
|
||||
) puts ( " Yes." ) ;else{*li1[l1l=!1]=toupper
|
||||
( *li1[!1] ) ;while ( l>l1l
|
||||
) printf ( " %s",li1[l1l++] ) ;puts
|
||||
( "." ) ;}}else{sprintf ( il1,"cat %s;echo",lll[1]
|
||||
) ;system ( il1 ) ;}printf
|
||||
( "\n? " ) ;gets ( il1
|
||||
) ;sprintf ( i1l,"%s %s %s",lll[!1 ] ,lll[1],il1);system
|
||||
( i1l); }
|
||||
@@ -0,0 +1,89 @@
|
||||
Obfuscated Intelligence Award:
|
||||
|
||||
Mark Schnitzius
|
||||
1700 Woodbury Rd. #1208
|
||||
Orlando, FL 32828
|
||||
USA
|
||||
|
||||
|
||||
Judges' comments:
|
||||
|
||||
To run:
|
||||
make schnitzi
|
||||
./schnitzi file
|
||||
|
||||
where:
|
||||
file a file containing some text
|
||||
|
||||
After this program prints the contents of 'file', ask it
|
||||
some questions related to the text.
|
||||
|
||||
The author suggests the following questions when using schnitzi.info:
|
||||
|
||||
Who is Mark Schnitzius?
|
||||
What exactly does this program do?
|
||||
What language is it written in?
|
||||
Has the Loch Ness monster really been captured?
|
||||
Who was Hitler?
|
||||
Were the NASA moon landings faked?
|
||||
Is it true that Elvis is alive?
|
||||
Do colorless green ideas sleep furiously?
|
||||
|
||||
NOTE: The author may also be contacted at: marks@aldrin.ksc.nasa.gov
|
||||
|
||||
We suggest you try using the body (minus the header and signature line)
|
||||
of a Usenet article. You might want to try something from alt.flame. :-)
|
||||
|
||||
|
||||
Selected notes from the author:
|
||||
|
||||
I wanted to write a program that would read in a text file in
|
||||
natural language (such as English) and answer questions about that
|
||||
text file. I thought this might be a complicated task, and I was
|
||||
right -- it took me over 800 bytes. Of course, it doesn't always
|
||||
work, but that's AI for you.
|
||||
|
||||
This program accepts the name of a text file as the first
|
||||
parameter. For example, to run it on the supplied data file called
|
||||
'info' you would type 'schnitzi info'. It echoes the file, then
|
||||
gives you a prompt where you may type in questions about that text.
|
||||
The more words you use which are actually present in the text file,
|
||||
the better results you get. You'll need to hit <ctrl-c> to break out
|
||||
of the program. Just hitting <return> at the prompt will reprint the
|
||||
paragraph.
|
||||
|
||||
If you're curious as to how it works, I guess you could feed in the
|
||||
source as the input file and ask "How does this work?" at the prompt,
|
||||
but I'm not guaranteeing any results...
|
||||
|
||||
Compilation notes:
|
||||
|
||||
o The use of 'strcasecmp' may be non-standard. 'strcmp'
|
||||
can be substituted for it, with a slight performance penalty.
|
||||
|
||||
o This program depends on the first command-line parameter, typically
|
||||
called argv[0], to hold the name of the executable. It is my under-
|
||||
standing that this property of argv[0] is not guaranteed on some
|
||||
systems.
|
||||
|
||||
This program is obfuscated in the following ways:
|
||||
|
||||
o It uses a hidden string to test for punctuation;
|
||||
|
||||
o The layout, variable names, and expression format
|
||||
have been chosen in such a way as to cause visual confusion;
|
||||
|
||||
o It uses uses external 'system' calls to echo the text
|
||||
file and break up the question into individual words with a
|
||||
recursive call;
|
||||
|
||||
o It uses a clever hack to simulate artificial intelligence.
|
||||
|
||||
The text for the info file, by the way, consists largely of headlines
|
||||
from the Weekly World News.
|
||||
|
||||
Copyright (c) 1993, Landon Curt Noll & Larry Bassel.
|
||||
All Rights Reserved. Permission for personal, educational or non-profit use is
|
||||
granted provided this this copyright and notice are included in its entirety
|
||||
and remains unaltered. All other uses must receive prior permission in writing
|
||||
from both Landon Curt Noll and Larry Bassel.
|
||||
@@ -0,0 +1,8 @@
|
||||
This program answers questions about paragraphs
|
||||
of text posed to it in English. It is written
|
||||
in C. Mark Schnitzius is the author of this
|
||||
program.
|
||||
|
||||
The Loch Ness monster has been captured. Elvis
|
||||
is alive. Hostler was a woman. The NASA moon
|
||||
landings were clearly faked.
|
||||
Reference in new issue
Block a user