restore *.orig.c to each entry
Under each yyyy/dir there is a file of the form '*.orig.c' containing the original source code, or as close as we can get to the original source code.
This commit is contained in:
1 parent
cfd253683f
commit
2ba12ecc3c
320 files changed
+21365
No files matched your search
@@ -0,0 +1,72 @@
|
||||
#define X N(a,O(h,W(f,M(c,g))),O(i,W(f,M(d,g))))
|
||||
#define A(x) r(D(x,1); O(x,-9); D(x,O(x,1)))
|
||||
#define L(x) getchar()-x
|
||||
#define R Z,Z,0,0
|
||||
#define S 0,9,6,6,6,6,6,6,9,0
|
||||
#define q D(h,0); A(f)A(g)
|
||||
#define T 0,6,1,2,2,2,2,1,6,0
|
||||
#define U 0,6,2,3,3,3,3,2,6,0
|
||||
#define C(x) ((x<1)||(x>8))
|
||||
#define F(x,y) printf(x,y);
|
||||
#define N(x,y,z) *O(*O(x,y),z)
|
||||
#define y(a,b,c) a[b][c]
|
||||
#define O(x,y) ((x)+(y))
|
||||
#define u(x) (O(0,-(x)))
|
||||
#define W(x,y) ((x)*(y))
|
||||
#define G(x) printf(x);
|
||||
#define D(x,y) (x=(y))
|
||||
#define P (random()%6)
|
||||
#define Y D(e,O(e,1))
|
||||
#define s D(f,O(f,Q))
|
||||
#define H(x) return x
|
||||
#define B(x) while(x)
|
||||
#define M(x,y) *O(x,y)
|
||||
#define z(a,b) a[b]
|
||||
#define E(x) if(x)
|
||||
#define I main(){
|
||||
#define Z 0,0,0,0
|
||||
#define t G("\n")
|
||||
#define V(x) (!x)
|
||||
#define v h,i,j,k
|
||||
#define w e,f,g
|
||||
#define J int
|
||||
#define Q u(1)
|
||||
#define p "%c"
|
||||
#define o 'A'
|
||||
#define r for
|
||||
#define n 60
|
||||
#define K do
|
||||
|
||||
J y(a,10,10)={R,R,R,R,Z,1,Q,Z,Z,Q,1,R,R,R,R,Z},y(b,10,10)={R,S,T,
|
||||
U , U , U , U , T
|
||||
, S , R } , z ( c
|
||||
, 9 ) = { Q , Q ,
|
||||
Q,0,0,1,1,1,0},z(d,9)={Q,0,1,Q,1,Q,0,1,0};I J w,v;l();r(D(e,0);O(
|
||||
e , - n ) ; Y ) {
|
||||
q D ( h , O ( h ,
|
||||
m ( f , g , 1 , 1
|
||||
)));E(h){K{G("\n?")K{D(f,L(O('A',Q)));}B(C(f));K{D(g,L('0'));}B(C
|
||||
( g ) ) ; } B ( V
|
||||
( m ( f , g , 1 ,
|
||||
Q ) ) ) ; l ( ) ;
|
||||
}q E((D(k,O(m(f,g,Q,1),P)))>h){D(h,k);D(i,f);D(j,g);}E(h&&m(i,j,Q
|
||||
, Q ) ) /***/ l /***/ ( ) ; }
|
||||
} J m (/* */v/*****/) J v ;
|
||||
{ J w ; /***/ E /***/ ( N ( a
|
||||
,h,i))H(0);E(O(k,Q))D(N(a,h,i),j);D(e,N(b,h,i));r(D(g,1);O(g,-9);
|
||||
D ( g , /***/ O /***/ ( g , 1
|
||||
) ) ) {/*****/D/* */( g , O
|
||||
( g , Q /***/ ) /***/ ) ; E (
|
||||
V(O(N(a,O(h,M(c,g)),O(i,M(d,g))),j))){r(D(f,1);V(O(X,j));D(f,O(f,
|
||||
1 ) ) ) ; E ( V (
|
||||
O ( N ( a , O ( h
|
||||
, W ( f , M ( c ,
|
||||
g))),O(i,W(f,M(d,g)))),u(j))))r(s;f;s){X=X*k;D(e,O(e,N(b,O(h,W(f,
|
||||
M ( c , g ) ) ) ,
|
||||
O ( i , W ( f , M
|
||||
( d , g ) ) ) ) )
|
||||
);}}D(g,O(g,1));}E(V(O(e,u(N(b,h,i))))){D(N(a,h,i),0);H(0);}H(e);
|
||||
} l ( ) { J f , g
|
||||
; t A ( g ) { F (
|
||||
p , O ( O ( o , g
|
||||
),Q))A(f)F("%c:",M("X O<",O(N(a,g,f),1)))t}G(" ")A(f)F("%d ",f)t}
|
||||
@@ -0,0 +1,55 @@
|
||||
#include <ctype.h>
|
||||
#include <stdio.h>
|
||||
#define A { E"Your score is %d\n",j);exit(0);}
|
||||
#define B(x,y) K(x<y){p=x;x=y;y=p;}
|
||||
#define C do{p=random()%N;}F(c[p]||d[p]);
|
||||
#define D random()%N
|
||||
#define E printf(
|
||||
#define F while
|
||||
#define G int
|
||||
#define H return
|
||||
#define I for
|
||||
#define J(r,j) a[r][j]
|
||||
#define K if
|
||||
#define L else
|
||||
#define M isdigit
|
||||
#define N 30
|
||||
#define P getchar()
|
||||
G a[N][3],b[N],c[N],d[N],e[N],f[N],g[N],i,j=0,k,l=0;
|
||||
main(){m();n();A;}m(){G o;srandom(getpid());do{I(o=0;
|
||||
o<N;e[o++]=3){J(o,0)=J(o,1)=J(o,2)=-1;c[o]=d[o]=g[o]=0;
|
||||
b[o]=N*2;}r(0);s();}F(s());t();}s(){G o,p;I(o=0;o<N;o++){
|
||||
B(J(o,2),J(o,1))B(J(o,1),J(o,0))B(J(o,2),J(o,1))K(J(o,0)==-1)H(1);
|
||||
}H(0);}t(){G o,p;I(o=0;o<N;o+=8){C c[p]=1;C d[p]=1;}w(D,0);I(o=0;
|
||||
o<3;o++){do{p=D;}F(c[p]||d[p]||f[p]||!b[p]);f[p]=1;}do{k=D;}
|
||||
F((c[k])||(d[k])||(b[k]==0));}w(o,d)G o,d;{G x;b[o]=d;I(x=0;
|
||||
x<3;x++)K(b[J(o,x)]>d)w(J(o,x),d+1);}G r(x)G x;{G y,t=0,u;
|
||||
F(e[x]){u=3;(e[x])--;do{y=D;K(t++>1000)H(0);K(t%100==0)u--;}
|
||||
F((y==x)||(e[y]<=0)||(y==J(x,2))||(y==J(x,1))||(e[y]<u));(e[y])--;
|
||||
J(x,e[x])=y;J(y,e[y])=x;K(!r(y)){J(x,e[x])=J(y,e[y])=-1;(e[y])++;
|
||||
(e[x])++;}L t=0;}H(1);}n(){G r,n;char v;do{r=D;}
|
||||
F(c[r]||d[r]||(b[r]<3)||d[J(r,0)]||d[J(r,1)]||d[J(r,2)]||
|
||||
c[J(r,0)]||c[J(r,1)]||c[J(r,2)]);F(1){E"You are in room %d\n",r);
|
||||
K(f[r]){i++;E"You found an arrow\n");j+=20;f[r]=0;}K(b[r]==0){
|
||||
E"Wumpus meat\n");j-=100;A;}K(d[r]){E"You fell in a pit\n");j-=50;
|
||||
A;}K(r==k){K(i){i--;l++;j-=20;E"You are missing an arrow!\n");
|
||||
}K(l==3){E"You catch the robber and recover all 3 arrows!\n");
|
||||
i=3;j+=200;k=-1;}L{E"The robber scurries away\n");do{k=D;}
|
||||
F((c[k])||(d[k])||(b[k]==0)||(k==r));}}K(c[r]){c[r]=0;c[D]=1;r=D;
|
||||
E"The bats pick you up and drop you in room %d\n",r);j-=10;}L{
|
||||
K(b[r]<3)E"You smell a wumpus\n");
|
||||
K(d[J(r,0)]||d[J(r,1)]||d[J(r,2)])E"You feel a breeze\n");
|
||||
K(c[J(r,0)]||c[J(r,1)]||c[J(r,2)])E"You hear a rustling sound\n");
|
||||
E"Passageways to room %d, %d, and %d\n",J(r,0),J(r,1),J(r,2));
|
||||
K(!g[r]){j+=10;g[r]=1;}do{v=P;K(v=='s')q(r);K(v=='l')break;
|
||||
K(v=='i')E"You have %d arrow%c\n",i,i-1?'s':' ');K(v=='q')A;}
|
||||
F(!M(v));K(M(v)){n=v-'0';v=P;K(M(v))n=n*10+v-'0';
|
||||
K((J(r,0)==n)||(J(r,1)==n)||(J(r,2)==n))r=n;}}}}q(r)G r;{G z,n;
|
||||
char v;K(i==0){E"You have no arrows\n");H;}i--;
|
||||
E"Shoot into which rooms? ");I(z=0;z<4;z++){j-=20*z;do{v=P;
|
||||
K((v=='\n')&&(i>0)){j-=50;E"You have %d arrows\n",i);H;}}F(!M(v));
|
||||
n=v-'0';v=P;K(M(v))n=10*n+v-'0';K((J(r,0)==n)||(J(r,1)==n)||(J(r,2)
|
||||
==n)){r=n;K(b[r]==0){E"You have killed the Wumpus!\n");j+=500+i*100;
|
||||
A;}}L K(random()%3==1){E"The arrow bounces back and kills you\n");
|
||||
j-=100;A;}L{I(n=0;n<N;n++)b[n]=2*N;w(D,0);j-=100;}K(v=='\n'){j-=50;
|
||||
E"You have %d arrows\n",i);H;}}}
|
||||
@@ -0,0 +1,35 @@
|
||||
#define S(r, c) f[r][c] = 1;
|
||||
|
||||
char f[96][160]; main(argc, argv) char **argv; { double x, y, atof(); int
|
||||
r ,
|
||||
c ,
|
||||
bi ,
|
||||
bj ,
|
||||
i ; for (i=10; i<=80 ;
|
||||
i ++) { S(i, 18); S(i, 152) ;
|
||||
} for (i=18; i<=152; i++) { S(10, i); S(80, i) ;
|
||||
} for (x=-20; x<=10; x += .05) {
|
||||
y =atof(argv[1]) *
|
||||
x * x * x + atof(argv [
|
||||
2 ])*x*x+atof(argv[3]) *
|
||||
x + atof(argv[4]) ;
|
||||
r = (500 - y)*.07+10 ;
|
||||
c =(x+20)*4.33333 +
|
||||
20 ; if(r>=10 && r<=80 && c
|
||||
>= 20 && c<=150) S
|
||||
( r, c); } for (
|
||||
r =0; r < 24; r ++
|
||||
) for (c=0; c <80; c++) { bi =
|
||||
4 *r;bj=2*c; i=(((f[bi][bj]<< 3
|
||||
) +(f[bi+1][bj]<<2)+(f[bi+2][bj]<<1)+(f[bi +
|
||||
3 ][bj]<<0))*16+ (f[bi][bj+1]<<3)+( f
|
||||
[ bi+1][bj+1]<<2)+(f[bi+2][bj +
|
||||
1 ]<<1)+(f[bi+3][bj+ 1
|
||||
] <<0)+1)*(c<79 )
|
||||
; putchar (
|
||||
|
||||
"\n ..,.;:j'::;';!|._:,;;;j/;;;jjjj.,-,r<jq/;I;/|I|,,rx///d///d///d.:\\;\
|
||||
-=vq':<|':++;;>;==gg':SS///+:\\\\\\r<wq/<64//d+lL+by[pg/</6///+`::;`\\\\\
|
||||
\\\"::;`\\YT;;;;`2>\\:=;;??]]:;;;>2>\\F;O;7?]7;;;;?2>b;;;;??]#'\\\\\\`\\\
|
||||
\\\\''<5\"\"Vq;\\\\\\`=\\\\''55\"?ggILLLD\\bfF[[[P?#M|||||#+#T[FFP?PM'"
|
||||
[i]); } }
|
||||
@@ -0,0 +1,85 @@
|
||||
#include<stdio.h>
|
||||
#include<stdlib.h>
|
||||
#define f (sizeof(int))
|
||||
|
||||
int i,j,k,l,m,*t,*u,*v;
|
||||
int r(x)int x;{return (rand()/256)%x;}
|
||||
void p(x,y)int *x,y;{for(i=y;--i;k=x[i],x[i]=x[j],x[j]=k)j=r(i+1);}
|
||||
|
||||
void o(n,a,q,d)int n,d,*a,*q;
|
||||
{
|
||||
for(m=r(2)?n:1,t=q,l=n/2,i=n;
|
||||
i--&&(i!=l||i--);
|
||||
*(t++)=i);
|
||||
for(p(q,n-1),q[n-1]=l,u=a,i=j=0;
|
||||
i<n*n;
|
||||
u[i] =q[j]*m,j++,++i%n||(++j,u+=d),j>=n&&(j-=n));
|
||||
for(p(q,n-1),u=a,m=n+1-m,i=0,j=n-1;
|
||||
i<n*n;
|
||||
u[i]+=q[j]*m,j++,++i%n||(--j,u+=d),j>=n&&(j-=n));
|
||||
}
|
||||
|
||||
void s(n,a,q,d)int n,d,*a,*q;
|
||||
{
|
||||
for(q[1]=3-(*q=r(n)),q[3]=3-(q[2]=1^q[r(2)]),t=a,i=n,m=3*r(2);
|
||||
i--;
|
||||
t+=d)
|
||||
for(j=n;
|
||||
j--;
|
||||
t++[0]=q[j^(i&m)^(i/2)]);
|
||||
for(q[1]=3-(*q=r(n)),q[3]=3-(q[2]=1^q[r(2)]),t=a,i=n,m=3-m;
|
||||
i--;
|
||||
t+=d)
|
||||
for(j=n;
|
||||
j--;
|
||||
t++[0]+=q[j^(i&m)^(i/2)]*4);
|
||||
}
|
||||
|
||||
void e(n,a,q,d)int n,d,*a,*q;
|
||||
{
|
||||
int h,i,k,l,z,g=n/2;
|
||||
void (*m)();
|
||||
for((m=g!=4?g%2?o:e:s)(g,a,q,g+d),m(g,a+g,q,g+d),l=(n+d)*g,u=a,i=g;
|
||||
i--;
|
||||
u+=d)
|
||||
for(j=n;
|
||||
j--;
|
||||
j<g&&(*u+=g*2*g),l[u]=*u+(j<g?-1:3)*g*g,u++);
|
||||
for(i=g; i--; q[i]=i<g/2);
|
||||
for(h=k=(g+1)/2,v=a; v<a+n; v+=g){
|
||||
for(u=v,i=g; i--; u+=g+d){
|
||||
if(p(q,g),q[z=g-i-1])
|
||||
if(k)k--;
|
||||
else
|
||||
for(j=g;q[--j]||(q[j]=1,q[z]=0););
|
||||
else
|
||||
if(k>i)
|
||||
for(j=g;!q[--j]||(k--,q[z]=1,q[j]=0););
|
||||
if(q[i])
|
||||
if(h)h--;
|
||||
else
|
||||
for(j=g;q[--j]||j==z||(q[j]=1,q[i]=0););
|
||||
else
|
||||
if(h>i||(g==3&&h&&(k==2||i==z)))
|
||||
for(j=g;!q[--j]||j==z||(h--,i==z&&k--,q[i]=1,q[j]=0););
|
||||
for(t=q,j=g;j--;u++)
|
||||
if(0[t++])z=*u,*u=u[l],u[l]=z;
|
||||
}
|
||||
for(h=k=g/2-g%2,i=g;i--;q[i]=i<h);
|
||||
}
|
||||
}
|
||||
|
||||
int main(c,v)
|
||||
int c;
|
||||
char **v;
|
||||
{
|
||||
int n,*a,*b;
|
||||
srand(getpid());
|
||||
if(c<2 || sscanf(1[v],"%d",&n)!=1 || n<3) n=5;
|
||||
if(!((a=(int*)malloc(n*n*f))&&(b=(int*)malloc(n*f))))
|
||||
return perror("malloc"),1;
|
||||
(n!=4?n%2?o:e:s)(n,a,b,0);
|
||||
for(i=0;i<n*n;i++)
|
||||
printf("%4d%c",a[i]+1,(i+1)%n?' ':'\n');
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
int _,O,__??('}'??);main(){while(O?gets((rand()%O++?':':_)+__)||puts(&__??(_??))&_:srand(time((O+++_)))||O);}
|
||||
@@ -0,0 +1,52 @@
|
||||
#include <stdio.h>
|
||||
int r=0,x,y=0, /*
|
||||
nt /
|
||||
c
|
||||
lx /\ / \ /|\ /|\
|
||||
u, \/ \\/ \-/ \ /
|
||||
dn ]
|
||||
e= ||| /|\ /\ /\ = p p
|
||||
0 \/ \ / ||| \/ f f f r r
|
||||
<, tw t s s i i
|
||||
sy || /|\ /\ i eh e e c n n
|
||||
t= /- \ / ||| n li l e a t t
|
||||
d0 ||| t ll l {< k n f f
|
||||
i, || /|\ /|\ (e s ( fr ( f ( (
|
||||
o _ ||\ \ / \-/ tu s( t usw o; i s ( " "
|
||||
. || - / c [[ tg rv [th rx=f t " % \
|
||||
h mh111 de{l) +di (+'( d+% c n+
|
||||
> aa000 itte; > +il x+ n inc " "+
|
||||
/ ir000[ns[nytyrrne<=)'<xn," , );
|
||||
*/ n = 0 ;
|
||||
main ( ) {
|
||||
char v [
|
||||
100 ] , s;
|
||||
int t[100 ] ,
|
||||
u[100 ] ; u
|
||||
[ 0
|
||||
]=ftell(stdin ) ;
|
||||
while(gets (v ) )
|
||||
{t [ r ]=
|
||||
strlen (
|
||||
v);y=
|
||||
t[ r ]
|
||||
>y ? t [
|
||||
r ] : y;
|
||||
u[++r ] =
|
||||
ftell(stdin ) ; }
|
||||
while ( n
|
||||
< y )
|
||||
{for(x=0 ; x
|
||||
<r;x++) { s
|
||||
=' ' ;
|
||||
if(n< t [
|
||||
x ] ) {
|
||||
fseek(stdin ,u [ x ]
|
||||
+n , 0 ) ;
|
||||
scanf("%c", &
|
||||
s )
|
||||
; }
|
||||
printf("%c", s )
|
||||
; }
|
||||
printf("\n"); n
|
||||
++ ; } }
|
||||
@@ -0,0 +1,60 @@
|
||||
#include <stdio.h>
|
||||
/*MLSPXPMPVPOQN
|
||||
POPJLVMMQNQNPSPYPXLRP
|
||||
XMTJMLSPXPMPVPOQNPOPJLVMN
|
||||
QSPWPOPXLRPXMTJMLNPOPPPSPXPOP
|
||||
JLYPRLTPVLUPVLWPVLXPVLVPSLJLUQP
|
||||
PJQLQSPXPNQPPRLTPVL*/main(){int K/*
|
||||
PUOUPWOV*/,L/*WPVLXPVLKPUOVPWOSLU*/,M
|
||||
/*PPPPVPOQMQRPR*/=0;FILE/*TPSLUMWQT*/ *
|
||||
J/*MPRPKPLQ*/; J= fopen(__FILE__
|
||||
/*T*/,"r");for (;( L/*KPUOWOWMUQ
|
||||
LLOLMPULWLWL WLW LWLWLWLWLWLW
|
||||
LWLWLULVOXP LLV LLLOLMPULOL
|
||||
MMNP*/=getc (J) )!= -1;L/*
|
||||
OLWLRMMQUL VOX PLLVLLLMQO
|
||||
PMPYPXPNP MQL LVLLLWPSP
|
||||
XPOQNQOPMQ LLV LTj*/>='J'
|
||||
&&L/*LRPYP OQL QMQLLVLLL
|
||||
OLMQVOXPL LVL LLVOe*/<=
|
||||
'J'+15&&( (M= !M/*MMMQMV
|
||||
OJMMMMMU OOL NPU MPMOM
|
||||
UMRNOLMQV OJM MMMMRMLLW
|
||||
QUMTJSPX PNQ JLLPUOWO
|
||||
WMUQJMVL JMV L*/)?K/*
|
||||
MQMV*/=L: putchar (K/*deMN
|
||||
MaVbcLKM KMV Le*/-'J'
|
||||
/*MWQUMTJ WPK PSPXPR*/
|
||||
|(L/*PQV LMPSLSPXPNQ*/- 'J'<<4))
|
||||
));exit( 0);}/*LPQUMMPR PKPLQJLT
|
||||
LTLJLMPU MTJUQMPRPKPLQ JLNPUONM
|
||||
JMWOVLTL OPVLPPWM
|
||||
PMUMTJNQ SPWPOPYO
|
||||
NQJLQPUM TJPNSNVN
|
||||
ONJLTLRP VLTLSPUM
|
||||
TJQQRPSP VPOPJLRL
|
||||
WLWLPPJLP LPLJLKLJQ
|
||||
SPJQOPRL NPSLJLPL
|
||||
PLJLKLPPY PLQUPRLSL
|
||||
SLUMTJRPW MPPNPYPJQ
|
||||
OPXPRLPMW LPPVMVMKM
|
||||
VLLLKPLLSL UMSPWMPPNP
|
||||
YPJQOPXPR LRLPMWLPP
|
||||
VMVMKMSLUL KMVLLLLQLL
|
||||
SLUMTJPPYP LQRLUMUMSL
|
||||
UQSPPPRLPPS LUQPPQPOPNQ
|
||||
MQRLNPVLNMJM VLSPSLUMNPUO
|
||||
MQNQLQVPOPXPR LNPSLWLKMWOWM
|
||||
QLVOJMQLUMTJSP PPRLTLNPWMWMQL
|
||||
JMQLULPPSLUQMQJQLQSPXPNQPPRLTLMPVLLLOLM
|
||||
QVOXPLLVLNPULKMSLUMYPRLMQNQNPYPOQNQVL
|
||||
PMVLPMWLPPVLNPULKMVLJMSLWQTJSPPPRLT
|
||||
LNPXMQLJMQLULPPSLYPRLRPVLOMVLNP
|
||||
VLJMVLJMSLWQOPVPMQOPUQNQSPWPO
|
||||
PRLPLQPSLUMOPWMKPMQMPNQSP
|
||||
WPOPRLVPYPMPKPVPNQSPW
|
||||
POPRLPLQPSLSLUM
|
||||
|
||||
TJPPYPLQRLPQWMKMUMPQVMPMUMPQULULSLYPRLRPVLPQKLWMKMPLPLPQKLWMPMWLKMVLPQ
|
||||
ULQLJMQLVLKPNQYPSPRLOPULLPUOPQWOSLVLPQSLMQVPOPOPJQRLKMSLUMWQWQWQTJTJ*/
|
||||
|
||||
Whitespace-only changes.
@@ -0,0 +1,115 @@
|
||||
#include <X11/Xlib.h>
|
||||
#define M typedef
|
||||
#define N( a)=r=(a)+j
|
||||
#define S f(; G; )D[B[R=i[--G]]=F+=F<p]++
|
||||
#define f for
|
||||
#define g [H]
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
M short a; M int b; M
|
||||
unsigned c ; M unsigned
|
||||
char*d; M XPoint *e; M void
|
||||
_; b*h,*i,j,k,l,m,n,o,p ; b O; d A
|
||||
,B,C; _*q,*r,*calloc(); e s ,t; Window
|
||||
u,v; GC x[256]; b D[256]; b w,y, z;_ Q(b E)
|
||||
{ XMapWindow(q,v=XCreateSimpleWindow(q, XRootWindow
|
||||
(q,z=XDefaultScreen(q)),!v*n,0,n,n,0,0,0)); XSelectInput
|
||||
( q,v,E); } _ P(){ C N(h N(i N(s N(t N(A N(B=calloc(C-B+256,1)
|
||||
) )) ))); } _ J(){ b F,G,H; c R =w %4; F=G=m; f(H=0; H<j
|
||||
; H++){ h g =l+(R-2?R?R-1?(G-F*F/n)+F*n:(G*G-F*F)
|
||||
/m*n+2*F*G/ m: 2*(F*F- G*G)/m+4*F*G/m*n:G+
|
||||
F*n);( s g. x= m-F--,s +H) ->y=m-G;F=
|
||||
F+m?F:(G--, m);}} _ K(){ b H,R;
|
||||
f(H=0;H<j;H ++)D[ B g=(c)(R
|
||||
=h g+k)< j? (A[ R]<p)+A
|
||||
|
||||
|
||||
[R
|
||||
]:
|
||||
1]
|
||||
++
|
||||
; } _ I ( d F)
|
||||
{ F?(_)0:(_
|
||||
) (F=B,
|
||||
gets(
|
||||
B))
|
||||
;
|
||||
|
||||
y=atoi(F);} _ Y(){ b F,
|
||||
G; c R ; F = G = 0; K( );
|
||||
f( R = k + l ; R < j && ( F =
|
||||
B[ R ] ) < p; R = h [R ] + k) { D
|
||||
[ F ] -- ; B [ i [ G ++ ] =R ] =p; } if
|
||||
( R >= j) F = 1; S; } _ L() { b H, F,G; c R ;
|
||||
f( H =0; H < j; H ++) B g =0; O =-1; f( G = R = 0;
|
||||
R < j; R++ ){ f(; R < j && !( F = B[ R ]); R = h[ R ]
|
||||
+ k) B [i[ G ++] = R ] = p; S; } } _ U() { e X [ 256 ]
|
||||
,W; b H; W = t; f ( H = 0; H < o; H ++ ) { X g =
|
||||
W; W +=D g ;} f( H =0; H < j; H ++) if(
|
||||
A g - B g) * X[ B g ] ++ = s g; {
|
||||
XMotionEvent * V = r = t ; W
|
||||
= t; f ( H = 0; H < o
|
||||
; H ++ ) { XDrawPoints
|
||||
|
||||
|
||||
(q ,
|
||||
v ,x g,
|
||||
W,X g -W,
|
||||
CoordModeOrigin
|
||||
) ; W += D
|
||||
g ; D g
|
||||
|
||||
= 0 ;
|
||||
} f(;
|
||||
XPending(q)+!
|
||||
++O; V->type-
|
||||
ButtonPress?(
|
||||
k =V
|
||||
->x+
|
||||
|
||||
|
||||
V -> y * n - l) : (
|
||||
O = - 42 ) ) XNextEvent ( q , r
|
||||
= V ) ; } } _ main ( b X , d * W ) { b H, F
|
||||
,G; c R; if ( X < 3 ) { puts( "tvr: mode size < cmap"
|
||||
); exit(0);} P(); I(*++ W); w = y %12; I(*++ W); n = y *2; j
|
||||
= n * n ; P ( ) ; m = y ; l = j / 2 + m
|
||||
; q=XOpenDisplay ( 0 ) ; Q ( 0 )
|
||||
; u = v ; Q ( PointerMotionMask
|
||||
|ButtonPressMask ) ; I ( 0 ) ; o
|
||||
=y ; p = o -1 ; { XColor F ;
|
||||
Colormap G; f ( H = 0 ; H < o
|
||||
; H++){ I(0); XParseColor(q,G
|
||||
=XDefaultColormap ( q , z ) , r =
|
||||
B , & F ) ; XAllocColor
|
||||
(q , G , & F ) ;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
XSetForeground
|
||||
(q,x g = XCreateGC
|
||||
( q, u ,0 , 0 ) , F
|
||||
.pixel ) ; } } P ( ); J (); f
|
||||
( F =R = G =H = 0; H < j; )
|
||||
if(++F >= p || ( R = h [ R ]
|
||||
+G)>=j ) { D [ B g = F ] ++; R
|
||||
= l + k; G= ++H -R;
|
||||
F =0; } H=j; U(); v=
|
||||
u; f(F=w/4; ; A+=H-=H+H,B-=H
|
||||
)(O<0?L:*("tvr@cs.hut.fi."
|
||||
+7*F)?F^1?Y:K:L)()
|
||||
,(U)(); }
|
||||
@@ -0,0 +1,5 @@
|
||||
|
||||
main(){
|
||||
int x=3,n,m=2,*t,*a,*b=0;
|
||||
while(b?o:((*(t=b=(int*)malloc(o))=2),a=t+1,o))n=*b,n>=m?c:x%n?(int)b++:N);
|
||||
}
|
||||
@@ -0,0 +1,90 @@
|
||||
#if O
|
||||
main(){}
|
||||
#else
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#if rop&onut&((own&rain)|warf)
|
||||
#include " The orc scrambles to the drain, trying to get the donut; you run out the door and escape! The End "
|
||||
#else
|
||||
#if escribe
|
||||
#if ocument
|
||||
#include " It reads: Depress Dotted Dog "
|
||||
#else
|
||||
#if oor
|
||||
#include " The door is decorated with relief figures of various dog breeds "
|
||||
#else
|
||||
#if rain
|
||||
#include " Through the drain you see a dwarf in another cell "
|
||||
#else
|
||||
#if warf
|
||||
#include " The gnarled dwarf looks thirsty "
|
||||
#else
|
||||
#if ungeon|ebris
|
||||
#include " You notice a desk, a phone, and a phone directory among the clutter "
|
||||
#else
|
||||
#if esk
|
||||
#include " There are some dimes on the desk "
|
||||
#else
|
||||
#if irectory
|
||||
#include " It reads: Pixie's Pub - instant service - Dial DUNgeon0614 "
|
||||
#else
|
||||
#include " You notice nothing unusual "
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#else
|
||||
#if ial&UNgeon0614
|
||||
#include " Pixie takes your order, and magically, the room is filled with banana daiquiris "
|
||||
#endif
|
||||
#if rink&aiquiri
|
||||
#include " As you drink, a voice from below says 'Could you drop one down here?' "
|
||||
#endif
|
||||
#if rop&aiquiri
|
||||
#if warf|own
|
||||
#include " The dwarf eagerly accepts the drink. 'Thanks! Here, I found this, but I can't understand it.' He hands you a document "
|
||||
#else
|
||||
#include " You drop the drink on the floor "
|
||||
#endif
|
||||
#endif
|
||||
#if epress&(almatian|almation)
|
||||
#include " As you press the dalmatian figure, the door opens - only to reveal a menacing orc by a vending machine (with a sign reading 'DEPOSIT MONEY') "
|
||||
#endif
|
||||
#if eposit&(ime|imes)
|
||||
#include " Donuts spill out; you get some, the orc hungrily eats the rest "
|
||||
#endif
|
||||
#if rop&onut
|
||||
#include " The orc quickly eats the donut; he still bars the way "
|
||||
#endif
|
||||
#if rop+epress+ime+eposit+rink+aiquiri+onut==1
|
||||
#include " Be more specific "
|
||||
#endif
|
||||
#include " You are in a debris-filled dungeon; a door bars the way, and sludge trickles into a floor drain "
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
Reference in new issue
Block a user