Add preview of 1984-2019
The 2020 winners are hinted it, but the source code is not there,
nor are the hints. Someone could look into the HTML and
see what was commented out, but that is not a problem because
WHO won is known and the name of their AWARD is known already.
Moreover a number of the winners have talked about what their
entirs do, so the commented out spoiler text is not a bit problem.
One will find HTML commented out with:
<!-- XXX remove when 2020 is ready
2020 links here
XXX remove when 2020 is ready -->
The "XXX remove when 2020 is ready" string is found at the
start and end comment blocks. Again, soneone could read
what was commented out, but that is OK since most of that
information is known or can be known. The following files
have such HTML comment blocks in them.
./winners.html
./years-spoiler.html
./years.html
In addition, ./all/summary.txt was modified to not
include the 2020 entries for the momemt.
The 2020 winner code AND write-ups are NOT part of this set.
p.s. The all/all.tar.bz2 does not contain the 2020 source code (yet?).
This commit is contained in:
1 parent
28efc67f5d
commit
c0663537cb
1683 files changed
+220064
No files matched your search
@@ -0,0 +1,205 @@
|
||||
#!/usr/bin/env make
|
||||
#
|
||||
# 2014 makefile
|
||||
#
|
||||
# This work by Landon Curt Noll, Simon Cooper, and Leonid A. Broukhis
|
||||
# is licensed under:
|
||||
#
|
||||
# Creative Commons Attribution-ShareAlike 3.0 Unported License.
|
||||
#
|
||||
# See: http://creativecommons.org/licenses/by-sa/3.0/
|
||||
|
||||
|
||||
################
|
||||
# tool locations
|
||||
################
|
||||
#
|
||||
SHELL= /bin/bash
|
||||
CP= cp
|
||||
CHMOD= chmod
|
||||
CPP= cpp
|
||||
GUNZIP= gunzip
|
||||
LD= ld
|
||||
MAKE= make
|
||||
RM= rm
|
||||
SED= sed
|
||||
TAR= tar
|
||||
TRUE= true
|
||||
|
||||
# Set X11_LIBDIR to the directory where the X11 library resides
|
||||
#
|
||||
X11_LIBDIR= /usr/X11R6/lib
|
||||
|
||||
# Set X11_INCLUDEDIR to the directory where the X11 include files reside
|
||||
#
|
||||
X11_INCDIR= /usr/X11R6/include
|
||||
|
||||
# Compiler warnings
|
||||
#
|
||||
#CWARN=
|
||||
CWARN= -Wall
|
||||
#CWARN= -Wall -pedantic
|
||||
|
||||
# compiler standard
|
||||
#
|
||||
#CSTD=
|
||||
#CSTD= -ansi
|
||||
CSTD= -std=c11
|
||||
|
||||
# compiler bit architecture
|
||||
#
|
||||
# Some entries require 32-bitness:
|
||||
# ARCH= -m32
|
||||
#
|
||||
# Some entries require 64-bitess:
|
||||
# ARCH= -m64
|
||||
#
|
||||
# By default we assume nothing:
|
||||
#
|
||||
ARCH=
|
||||
|
||||
# optimization
|
||||
#
|
||||
# Most compiles will safely use -O2. Some can use only -O1 or -O.
|
||||
# A few compilers have broken optimizers or this entry make break
|
||||
# under those buggy optimizers and thus you may not want anything.
|
||||
#
|
||||
#OPT=
|
||||
#OPT= -O
|
||||
#OPT= -O1
|
||||
OPT=
|
||||
#OPT= -O3
|
||||
|
||||
# Libraries needed to build
|
||||
#
|
||||
LIBS=
|
||||
|
||||
# default flags for ANSI C compilation
|
||||
#
|
||||
CFLAGS= ${CWARN} ${CSTD} ${ARCH} ${OPT}
|
||||
|
||||
# ANSI compiler
|
||||
#
|
||||
# Set CC to the name of your ANSI compiler.
|
||||
#
|
||||
# Some entries seem to need gcc. If you have gcc, set
|
||||
# both CC and MAY_NEED_GCC to gcc.
|
||||
#
|
||||
# If you do not have gcc, set CC to the name of your ANSI compiler, and
|
||||
# set MAY_NEED_GCC to either ${CC} (and hope for the best) or to just :
|
||||
# to disable such programs.
|
||||
#
|
||||
CC= cc
|
||||
#CC=clang
|
||||
MAY_NEED_GCC= gcc
|
||||
|
||||
|
||||
##############################
|
||||
# Special flags for this entry
|
||||
##############################
|
||||
#
|
||||
ENTRY= sinon
|
||||
DATA= glock.sh hecate.sh
|
||||
ALT_OBJ= run run.c
|
||||
ALT_ENTRY= prog
|
||||
|
||||
|
||||
#################
|
||||
# build the entry
|
||||
#################
|
||||
|
||||
all: data
|
||||
@${TRUE}
|
||||
|
||||
${ENTRY}: ${ENTRY}.c
|
||||
@rm -f $@
|
||||
perl $< | bash
|
||||
|
||||
# alternative executable
|
||||
#
|
||||
alt: ${ALT_ENTRY}
|
||||
@${TRUE}
|
||||
|
||||
# data files
|
||||
#
|
||||
data: ${DATA}
|
||||
${CP} ${ALT_ENTRY}.c ${ENTRY}.c
|
||||
${CHMOD} +x ${DATA}
|
||||
|
||||
|
||||
###############
|
||||
# utility rules
|
||||
###############
|
||||
#
|
||||
everything: all alt
|
||||
|
||||
clean:
|
||||
${RM} -f ${ENTRY}.o ${ALT_OBJ} ${ENTRY}.c
|
||||
|
||||
clobber: clean
|
||||
${RM} -f ${ENTRY} ${ALT_ENTRY}
|
||||
|
||||
nuke: clobber
|
||||
@${TRUE}
|
||||
|
||||
dist_clean: nuke
|
||||
@${TRUE}
|
||||
|
||||
install:
|
||||
@echo "Surely we are joking Dr. Science!"
|
||||
@${TRUE}
|
||||
|
||||
# backwards compatibility
|
||||
#
|
||||
build: all
|
||||
@${TRUE}
|
||||
|
||||
|
||||
##################
|
||||
# 133t hacker rulz
|
||||
##################
|
||||
#
|
||||
love:
|
||||
@echo 'not war?'
|
||||
@${TRUE}
|
||||
|
||||
haste:
|
||||
$(MAKE) waste
|
||||
@${TRUE}
|
||||
|
||||
waste:
|
||||
@echo 'haste'
|
||||
@${TRUE}
|
||||
|
||||
easter_egg:
|
||||
@echo you expected to sometimes mis-understand this $${RANDOM} magic
|
||||
@echo chongo '<was here>' "/\\oo/\\"
|
||||
@echo Readers shall not be disallowed from failong to be unable to not partly misunderstand this partocular final echo.
|
||||
|
||||
# Understand the history of the Homebrew Computer Club
|
||||
# as well as the West Coast Computer Faire and
|
||||
# you might be confused different. :-)
|
||||
#
|
||||
supernova: nuke
|
||||
@-if [ -r .code_anal ]; then \
|
||||
${RM} -f .code_anal_v4; \
|
||||
else \
|
||||
echo "We are not expected to understand that"; \
|
||||
fi
|
||||
@${TRUE}
|
||||
|
||||
deep_magic:
|
||||
@-if [ -r .code_anal ]; then \
|
||||
ccode_analysis --deep_magic 2ed3582ec5c094a093fea2a6bcb9f19439892873c9cc45ed1ceaafe08b7d52e1b2c7cd524be3b0b2 --FNV1a_hash 512-bit "${ENTRY}"; \
|
||||
else \
|
||||
echo "You are holding it wrong!"; \
|
||||
fi
|
||||
@${TRUE}
|
||||
|
||||
magic: deep_magic
|
||||
@-if [ -r .code_anal ]; then \
|
||||
ccode_analysis --mode 391581 --level 216193 --FNV1a_hash 512-bit "${ENTRY}"; \
|
||||
else \
|
||||
echo "These aren't the primes you're looking for Pauline!"; \
|
||||
fi
|
||||
@${TRUE}
|
||||
@@ -0,0 +1 @@
|
||||
gcc -O0 run.c -o run > /dev/null && ./run | tee run.c
|
||||
@@ -0,0 +1 @@
|
||||
gcc -O2 run.c -o run > /dev/null && ./run | tee run.c
|
||||
@@ -0,0 +1,154 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta name="GENERATOR" content="mkd2html 2.1.5a DL=DISCOUNT">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
|
||||
<link rel="stylesheet"
|
||||
type="text/css"
|
||||
href="../hint.css">
|
||||
<title>Best choice of optimization</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Best choice of optimization</h1>
|
||||
|
||||
<p>Don Yang<br>
|
||||
<a href="mailto:omoikane@uguu.org">omoikane@uguu.org</a><br>
|
||||
<a href="http://uguu.org/">http://uguu.org/</a></p>
|
||||
|
||||
<h2>Judges' comments:</h2>
|
||||
|
||||
<h3>To build:</h3>
|
||||
|
||||
<pre><code>make sinon
|
||||
</code></pre>
|
||||
|
||||
<h3>To run:</h3>
|
||||
|
||||
<pre><code>cp sinon.c run.c
|
||||
</code></pre>
|
||||
|
||||
<p>Then keep running ./glock.sh or ./hecate.sh within a minute with
|
||||
slight pauses between invocations.</p>
|
||||
|
||||
<h3>Try:</h3>
|
||||
|
||||
<pre><code>cp sinon.c run.c; ./hecate.sh; ./glock.sh; sleep 3; ./glock.sh; sleep 1; ./hecate.sh
|
||||
</code></pre>
|
||||
|
||||
<h3>Selected Judges Remarks:</h3>
|
||||
|
||||
<p>Try to figure out how this entry determines the optimization level with
|
||||
which it had been compiled. Is this an example of undefined behavior
|
||||
or unspecified behavior?</p>
|
||||
|
||||
<h2>Author’s comments:</h2>
|
||||
|
||||
<h3>Summary</h3>
|
||||
|
||||
<p>Sinon is a game of timing, the goal is to eliminate all enemies in
|
||||
under one minute.</p>
|
||||
|
||||
<p>To start, compile and run the program. To resume, compile and run the
|
||||
output repeatedly until you have won/lost the game. For example:</p>
|
||||
|
||||
<pre><code>cp sinon.c run.c
|
||||
gcc -O0 run.c -o run && ./run | tee run.c
|
||||
gcc -O2 run.c -o run && ./run | tee run.c
|
||||
...
|
||||
</code></pre>
|
||||
|
||||
<h3>Details</h3>
|
||||
|
||||
<p>Sinon is played by compiling and running the output repeatedly. Two
|
||||
factors determine what actions are taken:</p>
|
||||
|
||||
<ul>
|
||||
<li>Time since last compilation.</li>
|
||||
<li>Whether compiler optimizations are enabled or not.</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<p>If you fire too quickly, the weapon will jam. If you fire too slowly,
|
||||
you will not be able to eliminate all the enemies in time. Thus the
|
||||
primary objective of the game is to time your compilations just right.</p>
|
||||
|
||||
<p>Sinon has two weapons that are selected based on compiler optimization
|
||||
level:</p>
|
||||
|
||||
<ul>
|
||||
<li><p>“gcc -O2” or “clang -O2” will fire Hecate II, a powerful rifle that
|
||||
requires longer time to cool off.</p></li>
|
||||
<li><p>“gcc -O0” or “clang -O0” will fire Glock 18C, a less powerful pistol
|
||||
that requires less time to cool off.</p></li>
|
||||
</ul>
|
||||
|
||||
|
||||
<p>Because the weapons cool off independently, the best strategy is to
|
||||
alternate between the two weapons. It is fairly easy to win the game
|
||||
with this strategy even with occasional jams.</p>
|
||||
|
||||
<p>If your compiler does not have the right optimizations, only Glock 18C
|
||||
would be available. It is still possible to win, but your timing will
|
||||
need to be more precise. This is effectively playing the game on
|
||||
“hard” mode. It is worth trying this mode even if you have the right
|
||||
compilers.</p>
|
||||
|
||||
<h3>Compatibility</h3>
|
||||
|
||||
<p>Sinon has been tested and verified to work on these platforms:</p>
|
||||
|
||||
<ul>
|
||||
<li>gcc 4.4.3 on Linux.</li>
|
||||
<li>gcc 4.4.5 on Linux.</li>
|
||||
<li>gcc 4.8.2 on Linux.</li>
|
||||
<li>gcc 4.8.3 on Cygwin/MingW.</li>
|
||||
<li>clang 3.4-1 on Linux.</li>
|
||||
<li>clang 3.4.2 on Cygwin.</li>
|
||||
<li>gcc 4.3.5 on JS/Linux (playable but likely unwinnable, because it
|
||||
takes too long to compile).</li>
|
||||
<li>tcc 0.9.25 on JS/Linux (no optimization, so only “hard” mode is
|
||||
available).</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<p>Sinon is intended to be played in a 80x25 terminal.</p>
|
||||
|
||||
<h3>Miscellaneous features</h3>
|
||||
|
||||
<p>Sinon might be the first game that uses compiler optimization level as
|
||||
a primary input.</p>
|
||||
|
||||
<p>Sinon has a demo mode that plays the game automatically. Make sure
|
||||
that there are no files named “run” and “run.c” in current directory
|
||||
(they will be overwritten) and run:</p>
|
||||
|
||||
<pre><code>perl sinon.c | bash
|
||||
</code></pre>
|
||||
|
||||
<p>File size and CRC32 of sinon.c are embedded in line 7.</p>
|
||||
|
||||
<p>Process for making Sinon is included in spoiler.html.</p>
|
||||
|
||||
<p>Layout of this code is based on Asada Shino, also known as “Sinon”,
|
||||
from Sword Art Online.</p>
|
||||
|
||||
<hr />
|
||||
|
||||
<!--
|
||||
(c) Copyright 1984-2015, [Leo Broukhis, Simon Cooper, Landon Curt Noll][judges] - All rights reserved
|
||||
This work is licensed under a [Creative Commons Attribution-ShareAlike 3.0 Unported License][cc].
|
||||
|
||||
[judges]: http://www.ioccc.org/judges.html
|
||||
[cc]: http://creativecommons.org/licenses/by-sa/3.0/
|
||||
-->
|
||||
|
||||
<TABLE><TR>
|
||||
<TD><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/88x31.png" /></a></TD>
|
||||
<TD><P>© Copyright 1984-2015,
|
||||
<A HREF="/judges.html">Leo Broukhis, Simon Cooper, Landon Curt Noll</A>
|
||||
- All rights reserved<BR>
|
||||
This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-ShareAlike 3.0 Unported License</a>.</P></TD>
|
||||
<TD> <!--<a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01 Transitional" height="31" width="88"></a>--></TD>
|
||||
</TR></TABLE>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,120 @@
|
||||
# Best choice of optimization
|
||||
|
||||
Don Yang
|
||||
<omoikane@uguu.org>
|
||||
<http://uguu.org/>
|
||||
|
||||
|
||||
## Judges' comments:
|
||||
### To build:
|
||||
|
||||
make sinon
|
||||
|
||||
### To run:
|
||||
|
||||
cp sinon.c run.c
|
||||
|
||||
Then keep running ./glock.sh or ./hecate.sh within a minute with
|
||||
slight pauses between invocations.
|
||||
|
||||
### Try:
|
||||
|
||||
cp sinon.c run.c; ./hecate.sh; ./glock.sh; sleep 3; ./glock.sh; sleep 1; ./hecate.sh
|
||||
|
||||
### Selected Judges Remarks:
|
||||
|
||||
Try to figure out how this entry determines the optimization level with
|
||||
which it had been compiled. Is this an example of undefined behavior
|
||||
or unspecified behavior?
|
||||
|
||||
## Author's comments:
|
||||
### Summary
|
||||
|
||||
Sinon is a game of timing, the goal is to eliminate all enemies in
|
||||
under one minute.
|
||||
|
||||
To start, compile and run the program. To resume, compile and run the
|
||||
output repeatedly until you have won/lost the game. For example:
|
||||
|
||||
cp sinon.c run.c
|
||||
gcc -O0 run.c -o run && ./run | tee run.c
|
||||
gcc -O2 run.c -o run && ./run | tee run.c
|
||||
...
|
||||
|
||||
|
||||
### Details
|
||||
|
||||
Sinon is played by compiling and running the output repeatedly. Two
|
||||
factors determine what actions are taken:
|
||||
|
||||
+ Time since last compilation.
|
||||
+ Whether compiler optimizations are enabled or not.
|
||||
|
||||
If you fire too quickly, the weapon will jam. If you fire too slowly,
|
||||
you will not be able to eliminate all the enemies in time. Thus the
|
||||
primary objective of the game is to time your compilations just right.
|
||||
|
||||
Sinon has two weapons that are selected based on compiler optimization
|
||||
level:
|
||||
|
||||
+ "gcc -O2" or "clang -O2" will fire Hecate II, a powerful rifle that
|
||||
requires longer time to cool off.
|
||||
|
||||
+ "gcc -O0" or "clang -O0" will fire Glock 18C, a less powerful pistol
|
||||
that requires less time to cool off.
|
||||
|
||||
Because the weapons cool off independently, the best strategy is to
|
||||
alternate between the two weapons. It is fairly easy to win the game
|
||||
with this strategy even with occasional jams.
|
||||
|
||||
If your compiler does not have the right optimizations, only Glock 18C
|
||||
would be available. It is still possible to win, but your timing will
|
||||
need to be more precise. This is effectively playing the game on
|
||||
"hard" mode. It is worth trying this mode even if you have the right
|
||||
compilers.
|
||||
|
||||
|
||||
### Compatibility
|
||||
|
||||
Sinon has been tested and verified to work on these platforms:
|
||||
|
||||
+ gcc 4.4.3 on Linux.
|
||||
+ gcc 4.4.5 on Linux.
|
||||
+ gcc 4.8.2 on Linux.
|
||||
+ gcc 4.8.3 on Cygwin/MingW.
|
||||
+ clang 3.4-1 on Linux.
|
||||
+ clang 3.4.2 on Cygwin.
|
||||
+ gcc 4.3.5 on JS/Linux (playable but likely unwinnable, because it
|
||||
takes too long to compile).
|
||||
+ tcc 0.9.25 on JS/Linux (no optimization, so only "hard" mode is
|
||||
available).
|
||||
|
||||
Sinon is intended to be played in a 80x25 terminal.
|
||||
|
||||
|
||||
### Miscellaneous features
|
||||
|
||||
Sinon might be the first game that uses compiler optimization level as
|
||||
a primary input.
|
||||
|
||||
Sinon has a demo mode that plays the game automatically. Make sure
|
||||
that there are no files named "run" and "run.c" in current directory
|
||||
(they will be overwritten) and run:
|
||||
|
||||
perl sinon.c | bash
|
||||
|
||||
File size and CRC32 of sinon.c are embedded in line 7.
|
||||
|
||||
Process for making Sinon is included in spoiler.html.
|
||||
|
||||
Layout of this code is based on Asada Shino, also known as "Sinon",
|
||||
from Sword Art Online.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
<!--
|
||||
(c) Copyright 1984-2015, [Leo Broukhis, Simon Cooper, Landon Curt Noll][judges] - All rights reserved
|
||||
This work is licensed under a [Creative Commons Attribution-ShareAlike 3.0 Unported License][cc].
|
||||
|
||||
[judges]: http://www.ioccc.org/judges.html
|
||||
[cc]: http://creativecommons.org/licenses/by-sa/3.0/
|
||||
-->
|
||||
@@ -0,0 +1,43 @@
|
||||
#/*
|
||||
q{G.
|
||||
*/include<stdio.h> /*G!*/
|
||||
#define G(g,o)/**/int g=o;/**/
|
||||
#define q(b)int o[]={0,0,0,0,\
|
||||
0};char*p=#b,P[9999],*d=P,*e[]={"('A`)"\
|
||||
,"(A`)","('A)","('A`)"},b/*3792/e887094c*/
|
||||
q(*s=__TIME__;extern void w(){G(g,*o)for(;g--
|
||||
;);}extern void x(){}extern void y(){}static void z
|
||||
(char*p){for(;(*d=*p++)!=0;d++)*d-=061*(59==*d||*d==81);}int
|
||||
main(){char N[]="<;iQ=/*do<;dQ=ook8?boc;aQ=odr8>oc;_Q<ox8>oc"
|
||||
";^Q<d|8=o;]Q<dj8<Pk8<c]'?;QQdi8?P'Q)d8<9`8?c;Qdh8=P']Q<`c8>PQ9_8"
|
||||
">b;og8=''`Q<`b8?'QQ9_8?c;dPe8dQa8<P]Q<``8=;'f8>QQ`]8?ocQQ_8=''_Q`8aQ"
|
||||
"CYOUQWIN!]Q=;of8BQQ)88bc]QA98P'Qo]8>oQQ_8CP;QQ98b`_8@P8(Q`]'^Q=`']QB)88"
|
||||
"bQQ]`8J;QQ`88bc99bd(`8iQ@''QQo^8E'`8c;QQ'Q``8?QQ`'kQ<o]8B9PQQ`';_Q<`_8<cbQ"
|
||||
"<o_Q<o_QBdo`QQ';`Q=9`]8=bobQ_o_Q<o]8=';bQC(88cQ`bcgQ>oP']8<;cQ>98)^Q?''oc`Q>"
|
||||
"oc']Q]8<;cQ>`8bbQA``QQ''`Q?88P;dQ=`)nQ?*/;;"/*}}=~/./;print"cp\40sinon.c\40r",
|
||||
"un.c\n";for($i=1;$i<21;$i++){for($j=0;$j<2;$j++){print"gcc\x20-O",$j*2,
|
||||
"\40run.c\x20-o run&&./run|tee run.c\n"if!($i%(2+$j));}print"sleep $j\n";
|
||||
} __DATA__ 8M*/;G(Z,60*(60*(10**s+s[1])+s[3]*10+s[4])+s[6]*10+s[7]-1933008
|
||||
)G(l,(Z+86400-*o)%86400)G(M,o[3] *17+o[4]*11) G(O,(&x-&w)-(&y-&x)?1:0)G(
|
||||
m,*o)G(n,m)G(i,0)G(j,O)if(M>197)for( p=N;*p; )if(*p>92){*N=p[1 ];N[1]
|
||||
=0;for( O=*p++-90;0<O--;z( N));p++;}else{ s= p;for(O= *p++-59;O--;p++)
|
||||
p[-1]=*p;p[-1]=0;z(s);}else{ if(M==0){*o=Z;l=0; }if(o[O+3]&&o[ O+1]+(O?3:5
|
||||
)>l)Z=O;else++o[O+3];o[O+1] =l; if(l<60)d+= sprintf(d,"#include<stdio.h>"
|
||||
"\12#define G(g,o) int g=o;\n#d" "efine \161(b" ")int\40o[]={%d,%d,%d,%d,%d};char"
|
||||
"*p=#b,P[9999],*d=P,*e[]=" "{\"%s\", \"" "%s" "\",\"%s\",\"%s\"}, b\nq(%s)\n"
|
||||
,*o,o[01],o[2],o[3], o[4] ,e[3],e[1], e[2],*e,p);z("/*;; ");for(i=0; i++<18
|
||||
;z(";"))for(j=0;j++<11;n=(n*193+287) %384 ){m=(97+(67*m ))%198;for
|
||||
(O=0;O++<n%03;z("Q") );s=d;for(z(e[ ( n/3)&3]);m<M &&s-d;*s++
|
||||
=040);}if(l<60) {for (z(";Time:Q") ;(l++<60);z ("#"));for
|
||||
(z(";Heca"/* */ "t" "eQII:" "Q") ;o[3 ]++ <=24;z("#"));z
|
||||
(Z?"":"Q(j" "a" "m" "me" /* @ */"d" ")");for(z(
|
||||
";GlockQ18" "C:" /* * */ "Q");o[4]++<
|
||||
25;z("#") );z( Z- 1? ";":"Q(jam"
|
||||
"med);") /* */ ;} else z(";"
|
||||
";Gam" /* */ "eQover."
|
||||
";;" /* (- */);for
|
||||
(O= 0;O <77;O
|
||||
++) z("Q");z( "*" ""
|
||||
"/" );}
|
||||
puts (P);;
|
||||
return+0;})
|
||||
@@ -0,0 +1,34 @@
|
||||
<!DOCTYPE html>
|
||||
<html><head>
|
||||
<title>Replay text</title>
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
||||
<style type="text/css">
|
||||
.tmp{color:#00f}.final{color:#000}</style>
|
||||
</head><body>
|
||||
<noscript><span style="color:red">JavaScript required</span></noscript>
|
||||
<script type="text/javascript">
|
||||
var realtime_step=80;var fps=1000/realtime_step;var current_event=0;var current_time;var step=0;var slots=new Array(226);var update_slots=new Array(slots.length);var max_time=6687500;var max_file_size=149;var timer=null;var follow=1;var fast_scroll=1;var opacity=100;var opacity_timer=null;var string_table=
|
||||
[" */);for","e[3],e[1],e[2],*e,","ts[3] - \'0\') * 60 * 10 +","if( seed1 < score )","*o,o[1],o[2],o[3], o[4] ,e[3],e[1], e[2],*e,p);z(\"/*;; \");for(i=0; i++<18",";} else z(\";\"","static void WRit","a",")%198;for","n","(","++ = \'#\';","=","o[3],o[4],","0","rite(\"Glock 18C: \");","\"#define G(g,o) int g=o;\\n#d\"","/","d","p","1","[","]","char *ts = __TIME__;","for( p=N;*p;","m","u",", 0)","l","w","}","{\"(\'A`)\", \"(A`)\", \"(\'A)\", \"(\'A`)\"}","\'","3)&3]);m<M ","-","Write(\"#\");","\\","60*(60*(10**s+s[1])+s[3]*10+s[4])+s[6]*10+s[7]-1933008","9","X","2","#define G(O, o) int O = (o);","<",".","7","j","%","&&s-d;*s++","h","8","O",">","x","y"," {for (z(\";Time:Q\") ;(l++<60);z (\"#\"));for","$","I"," for(z(\";Time: \"); l++ < 60; z(\"#\"));for"," int elapsed = (timestamp + 86400 - state[0 /* start timestamp */]) % 8764","#define q(Q) char*z","4","g","z(\"/*;;\");"," seed 1 ="," for(z(\";Glock 18C: \"); o[4]++ < 25; z(\"#\"));z( Z- 1? \";\":\"Q(jam\"","G(l,(Z+86400-*o)%86400)G(M,o[3]*17+o[4]*11)G(O,(&x-&w)-(&y-&x)?1:0)G(m,*o)G(n,m)G(i,0)G(j,O)","Q","k","v"," INT TIM"," })",":","C","R","_"," (ts[3] - \'0\') * 60 + 1"," for($i=1;$i<21;$i++){for($j=0;$j<2;$j++){print\"gcc-O\",$j*2,\" a.c -o a\","," for(z(e[(n / 3) & 3]);m < M "," for(z(\";Hecate II: \"); o[3]++ < 25; z(\"#\"));z"," WRite"," int elapsed = (timestamp + 360"," for( p=N;*p; )if(*p>92){*N=p[1 ];N[1]","T"," q(*s=__TIME__;extern void w(){G(g, *o)"," {for (z(\";Time:Q\") ;(l++<60);z (\"#\"));for"," ;);}extern void x() {}"," ;o[3 ]++"," \"int state[]={%d,%d,%d,%d,%d};Q\\n\""," enemy[0], enemy[1], enemy[0], enemy[0],"," ;o[3 ]++"," WRite(\"\\n\"Hec"," for( p=N;*p;"," for(j = 0; j++ < 11;n = (n * 193 + 287) % 384){"," for(z(\";Hecate II: \") ;o[3 ]++"," }else{ s= p;"," /* Game over *vi"," for( p=N;*p;"," if( !M ){*o = Z;"," int i.,"," int state[] = {0, 0, 0, 0, 0}; \\"," int timestamp = (ts[0] - \'0\') * 3600 + 10","5","q"," \" (jammed)\");"," \"*e[]={\\\"%s\\\",\\\"%s\\\",\\\"%s\\\",\\\"%s\\\"}, b\\nq(%s)\\n\""," \"*e[]={\\\"%s\\\",\\\"\" \"%s\" \"\\\",\\\"%s\\\",\\\"%s\\\"}, b\\nq(%s)\\n\""," #include<stdi.h"," );o[4]++<"," ++) z(\"Q\");z( \"*\" \"\""," z(\";Time:Q\")"," );o[4]++<"," o[3],o[4],e[3],e[1], e[2],*e,p);z(\"/*;; \");for(i=0; i++<18"," );o[4]++<"," );o[4]++<"," ;);}extern void x(){}extern void y(){}static void z(char *p)"," main(){char N[] = \"<;iQ=/*do<;dQ=ook8?boc;aQ=odr8>oc;_Q<ox8>oc;^Q<d|8=o;]Q<dj8<Pk8<c]\'?;QQdi8?P\'Q)d8<9`8?c;Qdh8=P\']Q<`c8>PQ9_8>b;og8=\'\'`Q<`b8?\'QQ9_8?c;dPe8dQa8<P]Q<``8=;\'f8>QQ`]8?ocQQ_8=\'\'_Q`8aQCYOUQWIN!]Q=;of8BQQ)88bc]QA98P\'Qo]8>oQQ_8CP;QQ98b`_8@P8(Q`]\'^Q=`\']QB)88bQQ]`8J;QQ`88bc99bd(`8iQ@\'\'QQo^8E\'`8c;QQ\'Q``8?QQ`\'kQ<o]8B9PQQ`\';_Q<`_8<cbQ<o_Q<o_QBdo`QQ\';`Q=9`]8=bobQ_o_Q<o]8=\';bQC(88cQ`bcgQ>oP\']8<;cQ>98)^Q?\'\'oc`Q>oc\']Q]8<;cQ>`8bbQA``QQ\'\'`Q?88P;dQ=`)nQ?*/;;\";"," );o[4]++<"," (char*p){for(; (*d = *p++); d++)"," (char*p){for(;(*d=*p++);d++)*d-=49*(59==*d||*d==81);}int main()"," );o[4]++<"," );o[4]++<"," \"\\40run.c\\40-o run&&./run|tee run.c\\n\"if!($i%(2+$j));}}print\"sleep 2\\n\";"," if(l<60) {for (z(\";Time:Q\") ;(l++<60);z (\"#\"));for"," m < M && s - d;*s++"," );o[4]++<"," p[-1] = *["," (O=0;O++<n%3;z(\"Q\") );s=d;for(z(e[ ( n/3)&3]);m<M &&s-d;*s++"," <18;z(\";\"))"," );o[4]++<"," \"#define G(g,o)\"\"int g=o;\\n#d\""," \"#define G(g,o)int g=o;\\n#d\"\"efine \\161(b\""," \"#define q(Q) char*z ="," enemy[0], enemy[1], enemy[2], enemy[3],"," for(O = 0;Line truncated
|
||||
var events=
|
||||
[0,500,0,0,0,0,0,500,1,3,0,0,500,500,0,0,0,0,0,2773500,1,3,41,1,500,100,0,0,0,1,0,2773000,2,3,3,1,100,100,0,0,0,2,0,2772900,2,3,9,1,100,100,0,0,0,3,0,2772800,2,3,23,1,100,100,0,0,0,4,0,2772700,2,3,28,1,100,100,0,0,0,5,0,2772600,2,3,26,1,100,100,0,0,0,6,0,2772500,2,3,18,1,100,100,0,0,0,7,0,2772400,2,3,1,1,100,100,0,0,0,8,0,2772300,2,3,42,4,100,100,0,0,0,9,0,2772200,2,3,6,1,100,100,0,0,0,10,0,2772100,2,3,2,1,100,125,0,0,0,11,0,2772000,2,3,18,1,125,125,0,0,0,12,0,2771875,2,3,3,1,125,125,0,0,0,13,0,2771750,2,3,13,1,125,125,0,0,0,14,0,2771625,2,3,43,1,125,125,0,0,0,15,0,2771500,2,3,48,1,125,125,0,0,0,16,0,2771375,2,3,51,4,125,125,0,0,0,17,0,2772250,1,4,0,0,125,125,0,0,1,0,0,125,1,33,0,0,125,166,0,0,2,0,0,5956500,1,33,3,1,166,167,0,0,2,1,0,5956334,2,33,9,1,167,167,0,0,2,2,0,5956167,2,33,2,1,167,166,0,0,2,3,0,5956000,2,33,0,1,166,167,0,0,2,4,0,5955834,2,33,25,1,167,167,0,0,2,5,0,5955667,2,33,7,1,167,111,0,0,2,6,0,5955500,2,33,3,1,111,111,0,0,2,7,0,5955389,2,33,9,1,111,111,0,0,2,8,0,5955278,2,33,10,1,111,111,0,0,2,9,0,5955167,2,33,8,1,111,111,0,0,2,10,0,111,1,34,0,0,111,111,0,0,3,0,0,5983778,1,34,31,1,111,111,0,0,3,1,0,111,1,224,0,0,111,111,0,0,4,0,0,2942223,1,224,30,1,111,112,0,0,4,0,112,333,0,0,4,0,333,333,0,0,4,0,0,1667,1,36,0,0,333,1334,0,0,4,0,1334,2000,0,0,4,0,0,2000,1,36,50,1,2000,1000,0,0,4,1,0,1000,1,36,0,0,1000,125,0,0,4,0,0,1246666,1,36,0,3,125,125,0,0,4,3,0,1246541,2,36,23,1,125,125,0,0,4,4,0,1246416,2,36,48,1,125,125,0,0,4,5,0,1246291,2,36,7,1,125,125,0,0,4,6,0,1246166,2,36,15,1,125,125,0,0,4,7,0,1246041,2,36,0,1,125,125,0,0,4,8,0,1245916,2,36,4,1,125,125,0,0,4,9,0,1245791,2,36,2,1,125,166,0,0,4,10,0,1245666,2,36,6,1,166,167,0,0,4,11,0,1245500,2,36,0,1,167,167,0,0,4,12,0,1245333,2,36,12,1,167,166,0,0,4,13,0,1245166,2,36,0,1,166,167,0,0,4,14,0,1245000,2,36,74,1,167,167,0,0,4,15,0,1244833,2,36,74,1,167,142,0,0,4,16,0,1244666,2,36,82,1,142,143,0,0,4,17,0,1244524,2,36,56,1,143,143,0,0,4,18,0,1244381,2,36,457,1,143,143,0,0,4,19,0,1244238,2,36,456,1,143,143,0,0,4,20,0,1244095,2,36,74,1,143,143,0,0,4,21,0,1243952,2,36,74,1,143,143,0,0,4,22,0,1243809,2,36,5,1,143,166,0,0,4,23,0,1428,1,46,0,3,166,167,0,0,5,3,0,1262,2,46,56,1,167,167,0,0,5,4,0,1095,2,46,3603,1,167,166,0,0,5,5,0,928,2,46,82,1,166,167,0,0,5,6,0,762,2,46,0,1,167,167,0,0,5,7,0,595,2,46,82,1,167,142,0,0,5,8,0,428,2,46,56,1,142,143,0,0,5,9,0,286,2,46,457,1,143,143,0,0,5,10,0,143,2,46,456,1,143,143,0,0,5,11,0,143,1,46,69,10,143,143,0,0,5,10,0,143,1,46,69,9,143,143,0,0,5,9,0,143,1,46,69,8,143,143,0,0,5,8,0,143,1,46,69,7,143,250,0,0,5,7,0,250,1,46,69,6,250,250,0,0,5,6,0,250,1,46,69,5,250,250,0,0,5,5,0,250,1,46,415,4,250,250,0,0,5,4,0,5250,1,46,0,3,250,90,0,0,5,3,0,5000,2,46,3,1,90,91,0,0,5,4,0,4910,2,46,9,1,91,91,0,0,5,5,0,4819,2,46,2,1,91,91,0,0,5,6,0,4728,2,46,0,1,91,91,0,0,5,7,0,4637,2,46,2,1,91,91,0,0,5,8,0,4546,2,46,3,1,91,91,0,0,5,9,0,4455,2,46,25,1,91,91,0,0,5,10,0,4364,2,46,1,1,91,91,0,0,5,11,0,4273,2,46,6,1,91,91,0,0,5,12,0,4182,2,46,2,1,91,91,0,0,5,13,0,4091,2,46,7,1,91,166,0,0,5,14,0,4000,2,46,25,1,166,167,0,0,5,15,0,3834,2,46,19,1,167,167,0,0,5,16,0,3667,2,46,0,1,167,166,0,0,5,17,0,3500,2,46,12,1,166,167,0,0,5,18,0,3334,2,46,0,1,167,167,0,0,5,19,0,3167,2,46,10,1,167,200,0,0,5,20,0,3000,2,46,2,1,200,200,0,0,5,21,0,2800,2,46,6,1,200,200,0,0,5,22,0,2600,2,46,21,1,200,200,0,0,5,23,0,2400,2,46,14,1,200,200,0,0,5,24,0,2200,2,46,22,1,200,200,0,0,5,25,0,2000,2,46,0,1,200,200,0,0,5,26,0,1800,2,46,34,1,200,200,0,0,5,27,0,1600,2,46,0,1,200,200,0,0,5,28,0,1400,2,46,32,1,200,200,0,0,5,29,0,1200,2,46,14,1,200,500,0,0,5,30,0,1000,2,46,32,1,500,500,0,0,5,31,0,500,2,46,0,1,500,250,0,0,5,32,0,3000,1,46,150,31,250,250,0,0,5,31,0,2750,2,46,8,1,250,250,0,0,5,32,0,2500,2,46,0,1,250,250,0,0,5,33,0,2250,2,46,4,1,250,250,0,0,5,34,0,2000,2,46,0,1,250,250,0,0,5,35,0,1750,2,46,33,1,250,250,0,0,5,36,0,1500,2,46,37,1,250,250,0,0,5,37,0,1250,2,46,14,1,250,142,0,0,5,38,0,1000,2,46,14,1,142,143,0,0,5,39,0,858,2,46,0,1,143,143,0,0,5,40,0,715,2,46,11,1,143,143,0,0,5,41,0,572,2,46,0,1,143,143,0,0,5,42,0,429,2,46,20,1,143,143,0,0,5,43,0,286,2,46,14,1,143,143,0,0,5,44,0,143,2,46,0,1,143,333,0,0,5,45,0,333,1,46,100,44,333,333,0,0,5,44,0,333,1,46,100,43,333,334,0,0,5,43,0,334,1,46,100,42,334,500,0,0,5,42,0,500,1,46,100,41,500,500,0,0,5,41,0,2000,1,46,150,40,500,200,0,0,5,40,0,1500,2,46,4,1,200,200,0,0,5,41,0,1300,2,46,0,1,200,200,0,0,5,42,0,1100,2,46,20,1,200,200,0,0,5,43,0,900,2,46,14,1,200,200,0,0,5,44,0,700,2,46,0,1,200,250,0,0,5,45,0,500,2,46,11,1,250,250,0,0,5,46,0,250,2,46,0,1,250,250,0,0,5,47,0,1134833,1,46,150,46,250,250,0,0,5,46,0,1107,1,49,0,3,250,142,0,0,6,3,0,857,2,49,0,3,142,143,0,0,6,6,0,715,2,49,0,3,143,143,0,0,6,9,0,572,2,49,0,3,143,143,0,0,6,12,0,429,2,49,0,3,143,143,0,0,6,15,0,286,2,49,0,3,143,143,0,0,6,18,0,143,2,49,0,3,143,143,0,0,6,21,0,143,1,49,0,20,143,200,0,0,6,20,0,1135833,1,49,0,19,200,200,0,0,6,19,0,1135633,2,49,10,1,200,200,0,0,6,20,0,1135433,2,49,2,1,200,200,0,0,6,21,0,1135233,2,49,6,1,200,200,0,0,6,22,0,1135033,2,49,21,1,200,166,0,0,6,23,0,1134833,2,4Line truncated
|
||||
events.push(1);events.push(0);function e(id){return document.getElementById(id);}function Init(){var t0=0;for(var i=0;i<events.length;i+=6){events[i]+=t0;t0=events[i];if(events[i+1]==0) events[i+1]=max_time+1;else events[i+1]+=events[i];}var background='<pre style="margin:0px">\n';for(var i=0;i<max_file_size;i++)
|
||||
background+="\n";background+="<\57pre>";var layer_style="position:absolute;top:0px;left:0px;margin:0px;";document.write(
|
||||
'<div style="position:fixed;top:0px;right:0px;padding:2px;background-color:#fff;border:1px solid #00f;z-index:3" onmouseover="ForegroundControl()" onmouseout="BackgroundControl()" id=control><input type=button value="play 1x" onclick="Play(1)"> <input type=button value="play 3x" onclick="Play(3)"> <input type=button value="play 10x" onclick="Play(10)"> <input type=button value="play 30x" onclick="Play(30)"> <input type=button value="play 60x" onclick="Play(60)"> <input type=button value="pause" onclick="Pause()"> <input type=button value="rewind" onclick="Rewind()"><br><input type=checkbox id=follow name=follow onclick="Follow(this.checked)" checked> <label for=follow>Follow cursor (<span id=cursor_text><\57span>)<\57label> <input type=checkbox id=fast name=fast onclick="FastScroll(this.checked)" checked> <label for=fast>Fast scroll<\57label> <input type=checkbox id=tmp name=tmp onclick="Highlight(this.checked)" checked> <label for=tmp>Highlight transient lines<\57label><br><input type=range name=position id=position min=0 max='+max_time+' step=1 value=0 style="width:400px" onchange="InputSeek(this.value)"> <span id=time><\57span><\57div><div style="position:relative;border:1px solid">'+background+
|
||||
'<pre style="'+layer_style+'background-color:#fff;color:#fff;z-index:1" id=cursor><\57pre><pre style="'+layer_style+'color:#000;z-index:2" id=text><\57pre><\57div>');var output=e("text");for(var i=0;i<slots.length;i++){var span=document.createElement("span");span.id="slot"+i;output.appendChild(span);}Rewind();}function Animate(){Seek(current_time+step);UpdateProgress();}function Play(speed){step=realtime_step*speed;if(timer)
|
||||
clearTimeout(timer);timer=setTimeout("Animate()",realtime_step);}function Pause(){if(step!=0){step=0;Seek(current_time);UpdateProgress();}else{Play(1);}}function Reset(){for(var i=0;i<slots.length;i++){slots[i]=null;update_slots[i]="";var x=e("slot"+i);x.innerHTML="";x.className="tmp";x.style.display="none";}current_event=0;}function Scroll(){var c=e("cursor_block");if(c){var y=c.offsetTop;y-=64;if(y<0) y=0;var delta=y-window.scrollY;if(!fast_scroll||(delta>-80 && delta<window.innerHeight-64))
|
||||
delta/=fps;if(Math.abs(delta)>0){window.scrollTo(window.scrollX,window.scrollY+delta);return true;}}return false;}function ResetScroll(){if(Scroll())
|
||||
timer=setTimeout("ResetScroll()",realtime_step);}function Rewind(){Reset();step=0;Seek(0);UpdateProgress();if(follow)
|
||||
ResetScroll();}function NextFrame(){if(step>0){if(timer)
|
||||
clearTimeout(timer);timer=setTimeout("Animate()",realtime_step);}if(follow)
|
||||
Scroll();}function Seek(position){current_time=position;if(current_time<0)
|
||||
current_time=0;if(current_time>=max_time){current_time=max_time;step=0;}var t=Math.floor(current_time/1000);var s=t%60;var m=Math.floor(t/60);t=m+(s>9?":":":0")+s;e("time").innerHTML=t;if(events[current_event]>current_time){if(current_event>0 && events[current_event-6]<current_time){NextFrame();return;}Reset();}var min_slot=slots.length;var max_slot=0;var cursor_event=-1;for(;events[current_event]<=current_time;current_event+=6){var end_time=events[current_event+1];if(end_time<=current_time)
|
||||
continue;var type=events[current_event+2];if(type==0||type>3){cursor_event=current_event;}else{var i=events[current_event+3];if(type==3){slots[i]=null;}else{var text=string_table[events[current_event+4]].substr(
|
||||
0,events[current_event+5]);if(type==1||slots[i]==null) slots[i]=text;else slots[i]+=text;}if(min_slot>i) min_slot=i;if(max_slot<i) max_slot=i;update_slots[i]=(end_time>=max_time?2:1);}}for(var i=min_slot;i<=max_slot;i++){if(update_slots[i]){var span=e("slot"+i);if(slots[i]!=null){span.innerHTML=slots[i]+"\n";span.style.display="inline";span.className=(update_slots[i]==1?"tmp":"final");}else{span.innerHTML="";span.style.display="none";}update_slots[i]=0;}}if(cursor_event>=0){var text="";var y;var x=events[cursor_event+5];if(events[cursor_event+2]==0){y=events[cursor_event+4];for(var i=0;i<y;i++)
|
||||
text+="\n";for(var i=0;i<x;i++)
|
||||
text+=" ";text+='<span style="background-color:#0f0" id=cursor_block> <\57span>';}else{var s=events[cursor_event+3];for(var i=y=0;i<s;i++){if(slots[i]!=null){y++;text+="\n";}}var line=slots[s]||"";var offset=events[cursor_event+4];while(line.length<=offset)
|
||||
line+=" ";text+=line.substr(0,offset)+
|
||||
'<span style="background-color:#0f0;color:#0f0" id=cursor_block>'+
|
||||
line.substr(offset,events[cursor_event+2]-3)+
|
||||
'<\57span>';}e("cursor").innerHTML=text;e("cursor_text").innerHTML=(y+1)+','+(x+1);}NextFrame();}function InputSeek(position){var t=parseInt(position);if(t>=0)
|
||||
Seek(t);}function UpdateProgress(){e("position").value=current_time;}function Follow(state){follow=state;}function FastScroll(state){fast_scroll=state;}function Highlight(state){var x=document.styleSheets;for(var i=0;i<x.length;i++){var y=x[i].cssRules;for(var j=0;j<y.length;y++){if(y[j].selectorText==".tmp"){y[j].style.color=state?"#00f":"#000";return;}}}}function ForegroundControl(){e("control").style.opacity="1.0";opacity=100;if(opacity_timer){clearTimeout(opacity_timer);opacity_timer=null;}}function BackgroundControl(){e("control").style.opacity=opacity/100;if(opacity>35){opacity-=5;opacity_timer=setTimeout("BackgroundControl()",100);}}Init();</script>
|
||||
</body></html>
|
||||
Reference in new issue
Block a user