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,113 @@
|
||||
/* . wc . */
|
||||
#include<stdio.h>/* Wht majr flwchrt? */
|
||||
#include<string.h>/* That mjr flwchrt! */
|
||||
#define P 257
|
||||
#define G 17
|
||||
#define z 8
|
||||
#define v(jr) jr
|
||||
int W ,head;
|
||||
#define S(W,b,f) strncpy(W,b,f),W[f]=0\
|
||||
|
||||
|
||||
char *wcs=" \t\n";
|
||||
struct{ char X[z+1];
|
||||
char f ;
|
||||
int e ;
|
||||
struct{ char g[z+1];
|
||||
int b ;
|
||||
} w[ G];
|
||||
} o[ P];
|
||||
int L=0,j= -28;
|
||||
|
||||
|
||||
void E(int i, int m,char*c)
|
||||
{
|
||||
for(; i<43; i+=3)
|
||||
putc(i["}|uutsrq`_^bji`[Zkediml[PO]a_M__]ISOYIRGTNR"]+i-9,stderr);
|
||||
fprintf(stderr,"(%d): %s\n" ,m,c);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
int N(int m, char *t)
|
||||
{
|
||||
int i ;
|
||||
if (strlen (
|
||||
t)>z) t[z ]=0;
|
||||
for(i= 0; i< L ; i++) if(
|
||||
!strcmp (o[ i] . X
|
||||
, t))return i;
|
||||
if( L== P)
|
||||
E(0, m, t);
|
||||
S (o[ L] . X , t
|
||||
,z);
|
||||
head; W = .1* head;
|
||||
o[L ].f = !( strchr( t,']' )== 0 );
|
||||
o[L ++ ] . e = 0;
|
||||
return L -1 ; }
|
||||
|
||||
#define v(x )
|
||||
|
||||
int A(char *R)
|
||||
{
|
||||
int c=0, i;
|
||||
while(* R) {
|
||||
i = -1;
|
||||
while(j){
|
||||
if( ++ i==o[ c].e ) return 0;
|
||||
if(o[
|
||||
c] .w[i ] .g[0 ]
|
||||
=='.' ||strchr (o[ c].w[i] .g ,* R)){
|
||||
c=
|
||||
o[ c ] .w[i].b; break;/*
|
||||
main(int sl,char *j[]){
|
||||
sleep (~~~~~~~~atoi(j[1])) ;/* . sl
|
||||
sl s l . sl
|
||||
l l ]
|
||||
sl */ }
|
||||
}
|
||||
R++;
|
||||
}
|
||||
return o[ c].f;
|
||||
}
|
||||
|
||||
|
||||
main(int wc,char *V[]){char Y[999],*s;FILE*W;int m=0,echo,jr,q,wcl=0,wcw=0,wcc=0;
|
||||
v(s = V[1]; if (*V=strrchr(s,'/'))s=*V+1; if(( !strncmp( s + (jr=strlen(s)) -
|
||||
(q=strlen(V[2]) ),V[2],q))&&jr!=q) s[jr-q] = 0; puts(s); )
|
||||
int e,p,C,Q ,basename;
|
||||
W= fopen(wc>= 2 ? V[1] : "adgrep.c","rt");
|
||||
echo| m^ e| 5| (int) .8| echo|
|
||||
wc |C ==o[o[C] .e] .
|
||||
e| e==+p,p; s[o[C] .e ]
|
||||
;
|
||||
while( fgets(Y,998,W)) { wcc += strlen(Y); m++;
|
||||
if( s = strtok(Y,wcs)) wcw++;
|
||||
else continue ;
|
||||
C=
|
||||
basename= j +j+*"* . basename"
|
||||
+j+*"* r ] " + N(m,s) ;
|
||||
while( s = strtok(0,wcs)) {
|
||||
if( o[ C ] . e ==
|
||||
G) E(1 ,m,o[C] .X) ;
|
||||
S(o[C
|
||||
] .w[o[C ] .e].g,s, z);
|
||||
Q= C ;
|
||||
if(! ( s =strtok ( 0 ,wcs )))wcw --
|
||||
,E( 2 , m, o[C]
|
||||
. w[ o[ Q ] .e] . g );
|
||||
e
|
||||
= o[C ] .w[o[C ] .e++ ] .b= N(m,s)
|
||||
; wcw += 2; }
|
||||
0&&
|
||||
W && wcl++
|
||||
< 10 && printf((W,Y)); }
|
||||
if(j+28) { {
|
||||
; } printf("%7u%7u%7u\n", wcl , wcw , wcc); }
|
||||
while( gets(Y) ) if(A(Y)) puts(Y);
|
||||
W, jr; }
|
||||
|
||||
O(int wc,char**V) {
|
||||
--wc && (printf("%s ",*++V), main(wc,V), 1) || printf("\n"); }
|
||||
|
||||
@@ -0,0 +1,152 @@
|
||||
#include <stdio.h>
|
||||
#include <malloc.h>
|
||||
#include <setjmp.h>
|
||||
#include <ctype.h>
|
||||
#define new(PP) (PP *) malloc(sizeof(PP))
|
||||
typedef struct q {
|
||||
jmp_buf ppp;
|
||||
long qq;
|
||||
struct q *P;
|
||||
struct q *p;
|
||||
}
|
||||
PP;
|
||||
|
||||
PP *P;
|
||||
int aaaaaa=2;
|
||||
int aaaaaaa=1;
|
||||
|
||||
long qqq;
|
||||
|
||||
|
||||
aaAaaa(aa,aaa)
|
||||
char *aa;
|
||||
char *aaa;
|
||||
{
|
||||
char aaaa = 0;
|
||||
if ((((( aaa )))))
|
||||
{
|
||||
aaaa = *aa;
|
||||
*aa=0;
|
||||
aa+=strlen(aa+1);
|
||||
P =new(PP);
|
||||
P->P=P;
|
||||
P->p=P;
|
||||
}
|
||||
|
||||
if ((((( !setjmp(P->ppp) )))))
|
||||
{
|
||||
if ((((( !isdigit(*aa) )))))
|
||||
longjmp(P->ppp,aaaaaaa);
|
||||
else {
|
||||
P->p->P = new(PP);
|
||||
P->p->P->P = P;
|
||||
P->p->P->p = P->p;
|
||||
P->p = P->p->P;
|
||||
|
||||
P->qq = *aa--;
|
||||
P = P->p;
|
||||
aaAaaa(aa,0);
|
||||
}
|
||||
} else {
|
||||
if ( !aaaa&&!*aa )
|
||||
longjmp(P->p->ppp,aaaaaaa);
|
||||
|
||||
if ((((( (P->qq=aaaa)<10 &&!
|
||||
(isdigit(aaaa)) ||!
|
||||
(isdigit(*aa) ||!
|
||||
*aa ))))))
|
||||
{
|
||||
fprintf(stderr,"Usage %c%s <number>\n",
|
||||
(aaa[0]?7:aaaa),aaa+!aaa[0]);
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
ppPppp(pp,ppp)
|
||||
PP **pp, *ppp;
|
||||
{
|
||||
int aa;
|
||||
if ((((( !(aa=setjmp(ppp->ppp))||aa==aaaaaa )))))
|
||||
{
|
||||
if ((((( *pp==ppp )))))
|
||||
{
|
||||
ppp = (*pp)->p;
|
||||
|
||||
if ( qqq<47 ) return;
|
||||
if ( ppp->qq!=48 ) return;
|
||||
|
||||
while ( ppp->qq==48 )
|
||||
{
|
||||
printf("%ld\n",qqq-45);
|
||||
*pp = ppp;
|
||||
ppp = ppp->p;
|
||||
}
|
||||
qqq -= 1;
|
||||
longjmp(ppp->ppp,aaaaaaa);
|
||||
} else {
|
||||
PP *p;
|
||||
|
||||
ppPppp(pp,ppp->p);
|
||||
for (p=ppp;p!=*pp;p=p->p)
|
||||
{
|
||||
int qq=4;
|
||||
if ((((( qqq<47 &&
|
||||
(qq=0,p->qq+=p->p->qq-96)>=48-qqq ||
|
||||
qqq>46 &&
|
||||
(p->qq-=p->p->qq)<0 )))))
|
||||
{
|
||||
p->qq += qqq+qq;
|
||||
if ( p->p==P && qqq<=46 )
|
||||
{
|
||||
P->p->P = new(PP);
|
||||
P->p->P->P = P;
|
||||
P->p->P->p = P->p;
|
||||
*pp = P = P->p = P->p->P;
|
||||
P->qq = 48;
|
||||
}
|
||||
|
||||
p->p->qq+=qq==0;
|
||||
p->p->qq-=qq!=0;
|
||||
}
|
||||
else
|
||||
{
|
||||
p->qq += 48;
|
||||
}
|
||||
}
|
||||
if ( ppp->P==P ) longjmp(ppp->ppp,aaaaaaa);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
qqq += 1;
|
||||
|
||||
while (48==P->qq )
|
||||
{
|
||||
P->P->p = P->p;
|
||||
P = P->p->P = P->P;
|
||||
|
||||
}
|
||||
|
||||
if (ppp!=ppp->p->p )
|
||||
longjmp(ppp->ppp,aaaaaa);
|
||||
else
|
||||
{
|
||||
printf("At most one remains\n");
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
main(aaa,aaaa)
|
||||
int aaa;
|
||||
char **aaaa;
|
||||
{
|
||||
aaAaaa(aaa==aaaaaaa?aaaa[0]:aaaa[1],aaaa[0]);
|
||||
qqq = 39;
|
||||
ppPppp(&P,P->p);
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,178 @@
|
||||
#define W while
|
||||
#define S strspn
|
||||
#define R return
|
||||
#define F fprintf(stderr,
|
||||
#define C continue;
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#ifndef RULES
|
||||
#define RULES 500
|
||||
#endif
|
||||
|
||||
#define N(p, i) (p += i, p += S(p, w), i = strcspn(p, w))
|
||||
|
||||
char *b, l[BUFSIZ], *t[RULES], *d[RULES], *c[RULES], w[] = "\n\t ";
|
||||
|
||||
time_t M();
|
||||
int T();
|
||||
void U();
|
||||
|
||||
|
||||
time_t
|
||||
M(f)
|
||||
char *f;
|
||||
{
|
||||
int j, x;
|
||||
size_t i = 0;
|
||||
struct stat s;
|
||||
N(f, i);
|
||||
x = f[i];
|
||||
f[i] = 0;
|
||||
j = stat(f, &s);
|
||||
f[i] = x;
|
||||
R j < 0 ? 0 : s.st_mtime;
|
||||
}
|
||||
|
||||
int
|
||||
T(f)
|
||||
char *f;
|
||||
{
|
||||
char *q;
|
||||
size_t i = 0, j, k = 1;
|
||||
N(f, i);
|
||||
W ((q = t[k])) {
|
||||
j = 0;
|
||||
W (N(q, j)) {
|
||||
if (i == j && !strncmp(f, q, i))
|
||||
R k;
|
||||
}
|
||||
++k;
|
||||
}
|
||||
R 0;
|
||||
}
|
||||
|
||||
void
|
||||
U(f)
|
||||
char *f;
|
||||
{
|
||||
time_t t = M(f);
|
||||
size_t i = 0, j = !t, k = T(f);
|
||||
char *p = d[k], *q = c[k];
|
||||
if (!N(p, i) && q && *q != '\t' && j) {
|
||||
F "am: Don't know how to make '%s'.\n", f);
|
||||
exit(1);
|
||||
}
|
||||
W (0 < i) {
|
||||
U(p);
|
||||
if (t < M(p))
|
||||
j = 1;
|
||||
N(p, i);
|
||||
}
|
||||
if (j && q && *q == '\t') {
|
||||
sleep(1);
|
||||
W (*q++ == '\t') {
|
||||
i = j = 1;
|
||||
W (0 < S(q, "-+@")) {
|
||||
if (*q == '@')
|
||||
|
||||
i = 0;
|
||||
if (*q++ == '-')
|
||||
|
||||
j = 0;
|
||||
}
|
||||
if (i)
|
||||
puts(q);
|
||||
if (system(q) && j) {
|
||||
F "am: Error making '%s'\n", f);
|
||||
exit(1);
|
||||
}
|
||||
q += strlen(q) + 1;
|
||||
}
|
||||
c[k] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
main(u, v)
|
||||
int u;
|
||||
char **v;
|
||||
{
|
||||
FILE *f;
|
||||
struct stat s;
|
||||
size_t i, j, k;
|
||||
char *m, *n, *p, *q, *r;
|
||||
if (u < 2) {
|
||||
F "usage: am <makefile> [target]\n");
|
||||
R 2;
|
||||
}
|
||||
if (stat(*++v, &s) || !(f = fopen(*v, "r")))
|
||||
R 3;
|
||||
q = b = malloc(2*s.st_size);
|
||||
if (!b)
|
||||
R 4;
|
||||
i = 1;
|
||||
k = 0;
|
||||
m = 0;
|
||||
*t = *d = *c = "";
|
||||
W ((r = fgets(l, BUFSIZ, f))) {
|
||||
if (RULES <= i) {
|
||||
F "am: Number of target-rules exceeds %d.\n", RULES);
|
||||
R 1;
|
||||
}
|
||||
if (k) {
|
||||
*q++ = ' ';
|
||||
r += S(r, w);
|
||||
} else {
|
||||
if (t[i])
|
||||
c[i++] = q;
|
||||
if (m && putenv(m))
|
||||
F "am: No more environment space.\n");
|
||||
m = 0;
|
||||
if (*l == '#' || *l == '\n')
|
||||
C
|
||||
p = q;
|
||||
}
|
||||
W (!(k = *r == '\\' && r[1] == '\n') && *r) {
|
||||
if (*r == '$') {
|
||||
if (r[1] == '(') {
|
||||
n = r+2;
|
||||
r += strcspn(r, ")");
|
||||
*r++ = 0;
|
||||
n = getenv(n);
|
||||
if (n)
|
||||
q = strcpy(q, n) + strlen(n);
|
||||
C
|
||||
}
|
||||
if (*r == r[1])
|
||||
++r;
|
||||
}
|
||||
if (*r == '=' && *l != '\t' && !m) {
|
||||
*q = 0;
|
||||
m = p;
|
||||
j = 0;
|
||||
q = N(m, j) + m;
|
||||
*q++ = *r;
|
||||
j = 1;
|
||||
if (!N(r, j))
|
||||
*q++ = 0;
|
||||
C
|
||||
}
|
||||
if (*r == ':') {
|
||||
t[i] = p;
|
||||
*r = 0;
|
||||
d[i] = q+1;
|
||||
}
|
||||
if (*r == '\n')
|
||||
*r = 0;
|
||||
*q++ = *r++;
|
||||
}
|
||||
}
|
||||
fclose(f);
|
||||
U(2 < u ? *++v : t[1]);
|
||||
R 0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
#define A(c,a,b) t=b;t+=a;_(c)
|
||||
#define B(b,a) P(u,a)t=0;t-=a;R t+=u;t+=1;t/=2;_(b)
|
||||
#define b(x) x(g)
|
||||
#define C ;main(argc,argv)char**argv;{for(;!w;){q=0;l
|
||||
#define c(y) x
|
||||
#define D(c,a,b) t=a;t/=b;_(c)
|
||||
#define d(x) S(x,x,1)
|
||||
#define E(a,d) t=d;t-=p;t*=r;t*=a;p+=t;t=1;t-=a;r*=t;
|
||||
#define e(x) y
|
||||
#define f(x) x(e)
|
||||
#define G(x,y) Q(x,atoi(argv[y]))
|
||||
#define g(x) x(b)
|
||||
#define H Q(w,1)Q(p,0)r=0;
|
||||
#define h(x) x(c)
|
||||
#define i(c,a,b) a(b,b,c)
|
||||
#define J(x) Q(p,x)r=0;
|
||||
#define j(x) Q(f(g),x)
|
||||
#define K(x) Q(x,argc)
|
||||
#define k(x) S(a,y,x)
|
||||
#define L(x) u=p;u-=x;t=u;t*=u;R r+=2;r-=t;r/=2;
|
||||
#define l L(q) q+=1;
|
||||
#define M(c,a,b) t=a;t*=b;_(c)
|
||||
#define m(x) x(a,a)
|
||||
#define n(x) x(a,y)
|
||||
#define O(c,a,b) t=b;t+=1;t+=a;t/=2;Q(c,t)
|
||||
#define o(x,y) M(x,x,y)
|
||||
#define P(b,a) t=a;R _(b)
|
||||
#define R t+=2047;t/=2048;t+=8191;t/=8192;
|
||||
#define Q(a,b) t=b;_(a)
|
||||
#define S(c,a,b) t=a;t-=b;_(c)
|
||||
#define T }
|
||||
#define U(c,a,b) u=b;t=b;t-=1;t*=r;t+=1;b=t;t=a;t/=b;b=u;_(c)
|
||||
#define V int t,u,q,p=0,r,w=0,
|
||||
#define X(y) printf("%x\n",y);
|
||||
#define Z(a,d) t=p;t-=d;t*=a;t+=d;_(p)r*=a;
|
||||
#define _(a) t-=a;t*=r;a+=t;
|
||||
|
||||
V a,x,y,s C
|
||||
|
||||
G(f(g),q)G( g(h),2)n(B)Z(a,4)n(
|
||||
P)E(a,1)j(2989)H l k (1)m(B)Z(a,6)l k(h(b))
|
||||
B(s,a )m(P) Z(s ,8)E
|
||||
(a,q )Q( s,h (g)
|
||||
)Q( f(c ),f
|
||||
(g) )j( s)l
|
||||
i(b (h) ,S,
|
||||
f(b ))n (B)
|
||||
E(a ,2) J(8)
|
||||
l j( x)Q(x,1)l n(P)Z(a,8
|
||||
)o(x ,g(f))d(f(e))J(5)l j
|
||||
(x)l d(x )S(a
|
||||
,x, 1)m (B)
|
||||
Z(a ,10 )U(
|
||||
a,y ,x) o(a
|
||||
,x) k(a )m(
|
||||
P)E( a,7) l j (0)
|
||||
Q(s,1 )l D(a ,x, q)o(
|
||||
a,q)S(a,h(g),a)i(s, M,a)i(a,A,g(f))i(q,D,x
|
||||
)o(s,16)B(a ,x)E(a,9)H l j(2766)H
|
||||
|
||||
T X(b(f)) T
|
||||
@@ -0,0 +1,61 @@
|
||||
#define c 0 [m] ++ [m] =
|
||||
#define z;break;case
|
||||
|
||||
char s[5000];
|
||||
int m[20000]={32},L=1,I,T[500],*S=T,t=64,w,f;
|
||||
|
||||
a(x)
|
||||
{
|
||||
c L;
|
||||
L= *m-1;
|
||||
c t;
|
||||
c x;
|
||||
scanf("%s",s+t);
|
||||
t+=strlen(s+t)+1;
|
||||
}
|
||||
|
||||
r(x)
|
||||
{
|
||||
switch(x++[m]){
|
||||
z 5: for(w=scanf("%s",s)<1?exit(0):L;strcmp(s,&w[&m[1]][s]);w=m[w]);
|
||||
w-1 ? r(w+2) : (c 2,c atoi(s))
|
||||
z 12: I=1[m]--[m]
|
||||
z 15: f=S[-f]
|
||||
z 1: c x
|
||||
z 9: f *=* S--
|
||||
z 7: m[f]= *S--;
|
||||
f= *S--
|
||||
z 0: *++S=f;
|
||||
f=I++[m]
|
||||
z 8: f= *S --- f
|
||||
z 2: m[++1[m]]=I;
|
||||
I=x
|
||||
z 11: f=0>f
|
||||
z 4: *m-=2;c 2
|
||||
z 6: f=f[m]
|
||||
z 10: f= *S--/f
|
||||
z 3: a(1);
|
||||
c 2
|
||||
z 13: putchar(f);
|
||||
f= *S--
|
||||
z 14: *++S=f;
|
||||
f=getchar();
|
||||
}
|
||||
}
|
||||
|
||||
main()
|
||||
{
|
||||
a(3);
|
||||
a(4);
|
||||
a(1);
|
||||
w= *m;
|
||||
c 5;
|
||||
c 2;
|
||||
I= *m;
|
||||
c w;
|
||||
c I-1;
|
||||
for(w=6;w<16;)
|
||||
a(1),c w++;
|
||||
m[1]= *m;
|
||||
for(*m+=512;;r(m[I++]));
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
#include <stdio.h>
|
||||
|
||||
long a
|
||||
[4],b[
|
||||
4],c[4]
|
||||
,d[0400],e=1;
|
||||
typedef struct f{long g
|
||||
,h,i[4] ,j;struct f*k;}f;f g,*
|
||||
l[4096 ]; char h[256],*m,k=3;
|
||||
long n (o, p,q)long*o,*p,*q;{
|
||||
long r =4,s,i=0;for(;r--;s=i^
|
||||
*o^*p, i=i&*p|(i|*p)&~*o++,*q
|
||||
++=s,p ++);return i;}t(i,p)long*p
|
||||
;{*c=d [i],n(a,c,b),n(p,b,p);}u(j)f*j;{j->h
|
||||
=(j->g =j->i[0]|j->i[1]|j->i[2]|j->i[3])&4095;}v(
|
||||
j,s)f* j; {int i; for(j->k->k&&v(j->k, ' '),fseek(
|
||||
stdin, j->j, 0);i=getchar(),putchar(i-'\n'?i:s),i-
|
||||
'\n';);}w(o,r,j,x,p)f*o,*j;long p;{f q;int
|
||||
s,i=o->h;q.k=o;r>i?j=l[r=i]:r<i&&
|
||||
(s=r&~i)?(s|=s>>1, s|=s
|
||||
>>2,s|=s>>4,s
|
||||
|=s>>8
|
||||
,j=l[r
|
||||
=((r&i
|
||||
|s)&~(s>>1))-1&i]):0;--x;for
|
||||
(;x&&!(p&i);p>>=1);for(;!x&&j;n(o->i,j->i,q.
|
||||
i),u(&q),q.g||(q.j=j->j,v(&q,'\n')),j=j->k);for(;x;j=x
|
||||
?j->k:0){for(;!j&&((r=(r&i)-1&i)-i&&(r&p)?2:(x=0));j=l[r]);!
|
||||
x||(j->g&~o->g)||n (o->i,j->i,q.i)||(
|
||||
u(&q), q.j=j ->j,q.g?w(&q
|
||||
,r,j->k,x ,p):v(&q,
|
||||
'\n')); }}y(){f
|
||||
j;char *z,*p;
|
||||
for(;m ? j.j=
|
||||
ftell( stdin)
|
||||
,7,(m= gets(m ))||w(
|
||||
&g,315 *13,l[ 4095]
|
||||
,k,64* 64)&0: 0;n(g
|
||||
.i,j.i, b)||(u (&j),j.
|
||||
k=l[j.h],l[j.h]= &j,y())){for(z= p=h;*z&&(
|
||||
d[*z++]||(p=0)););for(z=p?n(j.i ,j.i,j.i)+h:"";
|
||||
*z;t(*z++,j.i));}}main(o,p)char** p; {for(;m = *++p;)for(;*m-
|
||||
'-'?*m:(k= -atoi(m))&0;d[*m]||(d[*m ]=e,e<<=1),t(*m++,g.i)); u(&
|
||||
g),m=h
|
||||
,y();}
|
||||
@@ -0,0 +1,54 @@
|
||||
#include <stdio.h>
|
||||
#include <malloc.h>
|
||||
#define I " .:\';+<?F7RQ&%#*"
|
||||
#define a "%s?\n"
|
||||
#define n "0?\n"
|
||||
#define C double
|
||||
#define o char
|
||||
#define l long
|
||||
#define L sscanf
|
||||
#define i stderr
|
||||
#define e stdout
|
||||
#define r exit (1)
|
||||
#define s(O,B) L(++J,O,&B)!=1&&c>++q&&L(v[q],O,&B)!=1&&--q
|
||||
#define F(U,S,C,A) t=0,*++J&&(t=L(J,U,&C,&A)),(!t&&c>++q&&!(t=L(v[q],U,\
|
||||
&C,&A)))?--q:(t<2&&c>++q&&!(t=L(v[q],S,&A))&&--q
|
||||
#define T(E) (s("%d",E),E||(fputs(n,i),r))
|
||||
#define d(C,c) (F("%lg,%lg","%lg",C,c)))
|
||||
#define O (F("%d,%d","%d",N,U),(N&&U)||(fputs(n,i),r)))
|
||||
#define D (s("%lg",f))
|
||||
#define E putc
|
||||
C
|
||||
G=0,
|
||||
R
|
||||
=0,Q,H
|
||||
,M,P,z,S
|
||||
=0,x=0
|
||||
, f=0;l b,j=0, k
|
||||
=128,K=1,V,B=0,Y,m=128,p=0,N
|
||||
=768,U=768,h[]={0x59A66A95,256
|
||||
,192,1,6912,1,0,0},t,A=0,W=0,Z=63,X=23
|
||||
;o*J,_;main(c,v)l c;o**v;{l q=1;for(;;q<
|
||||
c ?(((J=v[q])[0]&&J[0]<48&&J++,((_= *J)<99||
|
||||
_/2== '2'||(_-1)/3=='\"'||_==107||_/05*2==','||_
|
||||
>0x074)?( fprintf(i,a,v[q]),r):_>0152?(_/4>27?(_&1?(
|
||||
O,Z=N,X=U): (W++,N=Z,U=X)):_&1?T(K):T(k)):_>103?(d(G,
|
||||
R ),j=1):_&1? d(S,x):D,q++),q--,main(c-q,v+q)):A==0?(A=
|
||||
1,f||(f=N/4.),b=(((N-1)&017)<8),q=(((N+7)>>3)+b)*U,(J=malloc(q)
|
||||
)||(perror("malloc"),r),S-=(N/2)/f,x+=(U/2)/f):A==1?(B<U?(A=2,V
|
||||
= 0,Q=x-B/f,j ||(R=Q),W&&E('\n',e),E(46,i)):(W&&E('\n',
|
||||
e),E('\n',i ),h[1]=N,h[2]=U,h[4]=q,W||(fwrite(h,1,32,
|
||||
e),fwrite (J,1,q,e)),free(J),exit(0))):A==2?(V<N?(j?
|
||||
(H=V/f +S,M=Q):(G=V/f+S,H=M=0),Y=0,A=03):((m&0x80
|
||||
) ||(m=0x80,p++),b&&(J[p++]=0),A=1,B++)):((Y
|
||||
<k&&(P=H*H)+(z=M*M)<4.)?(M=2*H*M+R,H=P-z
|
||||
+G,Y++):(W&&E(I[0x0f*(Y&K)/K],e),Y&K?J
|
||||
[p]&=~m:(J[p]|=m),(m>>=1)||/*/
|
||||
(m=128,u--),A==6?exit(1):B<u
|
||||
. e=3,l=2*c*/( m
|
||||
=0x80,
|
||||
p++),V++
|
||||
,A=0x2
|
||||
)
|
||||
));
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
#include <X11/Xlib.h>
|
||||
# define X( x,v,y) XMoveWindow(d,s[x],(v)*z,(y)*z)
|
||||
# define _ ButtonPressMask|ButtonReleaseMask
|
||||
# define I( x,y) XSelectInput(d,s[x],y)
|
||||
# define N( v) (XMapWindow(d,s[v]),v)
|
||||
# define V VisibilityChangeMask
|
||||
# define A XCreateSimpleWindow
|
||||
# define D DefaultScreen(d)
|
||||
# define E r.xbutton.button
|
||||
# define R BlackPixel(d,D)
|
||||
# define S r.xvisibility
|
||||
|
||||
int main(a)int a;{Window s[53];int w,u,i,c,y,l=0
|
||||
,q,e=32,t,k,j=~0,z=(a+1)/2,x=a&1,v=z&1;XEvent r;Display*
|
||||
d=XOpenDisplay("");s[0]=A(d,DefaultRootWindow(d),200,200,(x&
|
||||
v?330:120)*z,215*z,2,R,R);I(N(c=0),_);for(;c<(x?32:52);c++){s[
|
||||
c+1]=A(d,s[0],x ?c*20*z:(c-1)%10 *12*z,x?-20*z:(
|
||||
c-1)/10*12*z,x ?z*(c^31?10: 2):z*10*(c?1:2
|
||||
), x& v?z*10: (c &&!x?10:1+ x) *z,k =q=1, R,
|
||||
WhitePixel(d ,D));I (N(c+1), V);}X( N(1),y=(x&v)
|
||||
*115+50,x*70+ 60 ); X(N(c-- )+ 1,x?-10:(i=y)
|
||||
,u=!x*130-20); while(c &&e< 160){if(x){if(
|
||||
v){l=!(e &32)*9; for(w=30; w--;){ if(s[w+2]){ k=w%
|
||||
10;l=e&32?k>l?k:l:k<l?k:l;X(w+2,10+k *20+q,(w/10)*20+e);}}l*=20;
|
||||
e&31?e++:e&32?(q++,(q+l>300?e++:0)):(q--,q+l<10?e++:0); } u>140?
|
||||
exit(c):u>-20?X(32,i,u-=(v?5:-1)):(!v?(u =5,srandom(time(0)),i=
|
||||
random()%88+6):0); } else{k>0?i+=(i>105?k= -k:k):(i+=(i<1?k= -k:
|
||||
k)); j>0?u +=(u>140?exit(++c):j):(u+=(u <1?j= -j:j
|
||||
)); X( 52,i,u);}XSync(d,0); while(
|
||||
XCheckMaskEvent(d ,_|V,&r))if(!(r. type==ButtonPress
|
||||
?(E&1||!x||!v?t=E*4-8 :u<0?i=y+4,u=122:1):r
|
||||
.type==ButtonRelease&&E?t=0,1:r.type^VisibilityNotify|S.state^1)
|
||||
)for(x&v?(u= -15),w++:(w=0);++w <52-x*20;)if
|
||||
(s[w] ==S.window)x&&v|| w ^1?
|
||||
XUnmapWindow (d,s[w]) ,s[w]=0,c--:
|
||||
0,l=1; if(!x&&l)j= -j,l=0; if(l&x&&!v
|
||||
)u=~19,c--,l=0;t=(!x||!v) &&(y<5&&t<0||y>95&&t>0)?0
|
||||
:t;s[1]?X(1,y+=x&v?t:t/(x+1),130):exit(++c);};return(c);}
|
||||
@@ -0,0 +1,167 @@
|
||||
#define f 000:
|
||||
char
|
||||
*s,*
|
||||
t,v;
|
||||
char
|
||||
_ [
|
||||
999]
|
||||
,x [
|
||||
999]
|
||||
,*p=
|
||||
x ;
|
||||
char
|
||||
*av[
|
||||
]= {
|
||||
"W",
|
||||
"H",
|
||||
"o",
|
||||
"l",
|
||||
"N",
|
||||
"e",
|
||||
" ",
|
||||
"r",
|
||||
"d",
|
||||
".",
|
||||
"m",
|
||||
"s",
|
||||
"g",
|
||||
"!",
|
||||
"*",
|
||||
"\n"
|
||||
} ;
|
||||
int
|
||||
n= 0
|
||||
;int
|
||||
__ =
|
||||
0,i=
|
||||
000;
|
||||
main
|
||||
() {
|
||||
#define f 001:
|
||||
#define F 042:
|
||||
#define f 100:
|
||||
i--[
|
||||
#define f 126:
|
||||
#define f 132:
|
||||
#define f 103:
|
||||
#define f 202:
|
||||
#define f 666:
|
||||
#define f 77::
|
||||
#define f 101:
|
||||
_]=0
|
||||
#define f 232:
|
||||
#define f 151:
|
||||
;if(
|
||||
#define f 256:
|
||||
!i){
|
||||
puts
|
||||
("I"
|
||||
"BM"
|
||||
" S"
|
||||
"UX"
|
||||
);;;
|
||||
;;;}
|
||||
;for
|
||||
( ;
|
||||
gets
|
||||
(_);
|
||||
) {
|
||||
for(
|
||||
#define f 301:
|
||||
t=_,
|
||||
#define f 700:
|
||||
#define f 999:
|
||||
s=t,
|
||||
#define f 77 :
|
||||
#define f 300:
|
||||
s=t;
|
||||
#define f s=t;
|
||||
#define f 123:
|
||||
#define f 127:
|
||||
*t&&
|
||||
!(!(
|
||||
*t <
|
||||
'0'
|
||||
||*t
|
||||
>'9'
|
||||
)&&!
|
||||
((t[
|
||||
1] ^
|
||||
':')
|
||||
&&(t
|
||||
[1]^
|
||||
'.')
|
||||
)) ;
|
||||
t++)
|
||||
#define f 137:
|
||||
#define f 133:
|
||||
;if(
|
||||
#define f 111:
|
||||
#define f 220:
|
||||
v^*t
|
||||
&&*t
|
||||
){v=
|
||||
*t;;
|
||||
n=n*
|
||||
2+(1
|
||||
&*t)
|
||||
;__=
|
||||
(__+
|
||||
1)&3
|
||||
; __
|
||||
||((
|
||||
n<15
|
||||
&&(*
|
||||
p= *
|
||||
av[n
|
||||
] ),
|
||||
#define f 2+2:
|
||||
p++)
|
||||
,n=0
|
||||
);}}
|
||||
#define f ==4:
|
||||
;*p=
|
||||
'\0'
|
||||
;;;;
|
||||
#define f puts
|
||||
puts
|
||||
(x);
|
||||
s=t;
|
||||
#define f s=5;
|
||||
s=t;
|
||||
#define f s=5:
|
||||
s=t;
|
||||
#define f 445:
|
||||
#define f 113:
|
||||
#define f 900:
|
||||
s=t;
|
||||
#define f n22:
|
||||
#define f n40:
|
||||
s=t;
|
||||
#define f nn6:
|
||||
s=t;
|
||||
#define f nn1:
|
||||
#define f 0:--
|
||||
s=t;
|
||||
#define f 19:-
|
||||
#define f x2:x
|
||||
s=t;
|
||||
#define f x1:x
|
||||
s=t;
|
||||
#define f y2:x
|
||||
#define f y7:y
|
||||
s=t;
|
||||
#define f 1:::
|
||||
s=t;
|
||||
#define f @3:@
|
||||
#define f 10:0
|
||||
#define f x+1:
|
||||
s=t;
|
||||
#define f 2:::
|
||||
#define f 3:::
|
||||
#define x 7:::
|
||||
#define y 3:::
|
||||
#define z 990:
|
||||
#define Z 47::
|
||||
;;;}
|
||||
|
||||
@@ -0,0 +1,77 @@
|
||||
#include <stdio.h>
|
||||
#include <curses.h>
|
||||
|
||||
#define ST strchr
|
||||
#define SRD srand48
|
||||
#define RD lrand48
|
||||
|
||||
#define Q return
|
||||
#define W wrefresh(r)
|
||||
typedef int i;
|
||||
|
||||
#define Z(d,a) (RD()%((a)-(d)+1)+(d))
|
||||
i f[3][3] = {15,52,36,20,-39,48,60,0,-25};
|
||||
|
||||
char z[6][6];
|
||||
#define Y(x) (4*(x)+3)
|
||||
#define X(x) (2*(x)+1)
|
||||
#define I for
|
||||
WINDOW *r=NULL;
|
||||
#define K endwin()
|
||||
|
||||
char *g ="\
|
||||
Use l-h-k-j for move.\nUse + for increment. Use - for decrement.\nUse Q to quit.";
|
||||
|
||||
i (*d())();
|
||||
nt()
|
||||
{
|
||||
long time();
|
||||
SRD(time((i *)0));
|
||||
memset(z,5,36);
|
||||
initscr();
|
||||
cbreak();
|
||||
noecho();
|
||||
nonl();
|
||||
if (COLS<80||LINES<24)
|
||||
K,exit(1);
|
||||
if (!(r=newwin(X(6),Y(6),
|
||||
(LINES-X(6))/2,(COLS-Y(6))/2)))
|
||||
K,exit(1);
|
||||
mvaddstr(LINES-5,0,g);
|
||||
refresh();
|
||||
}
|
||||
i ci()
|
||||
{
|
||||
i x,y=0;
|
||||
I (;y<6;++y)
|
||||
I(x=0;x<6;++x)
|
||||
mvwaddch(r,X(y),Y(x),z[x][y]+'0'); Q(0);
|
||||
}
|
||||
void main()
|
||||
{
|
||||
char *ST();
|
||||
i a=0,b=0,c,q,t,s,x,sc=0;
|
||||
i(*(*p)())()=(nt(),d);
|
||||
I(x=0 ; x++<20; )d(Z(0,5),Z(0,5),Z(1,2));
|
||||
I(t=Z(0,2),q=s=0; q<3; s+=f[q][t]*f[q++][t]);
|
||||
I(box(r,'|','-'),ci(),wmove(r,X(a),Y(b)),
|
||||
W; (ST ("+-Qlkjh",(char)(c=wgetch(r))))&&
|
||||
((i)((i)(q^=s%=Y(q),s/=2)!=(i)(s^=q)&&c&64&&(!(c&7|0)&&--b<0&&
|
||||
(b=q^s)&0|| c&4&&++b==6&&c&4<(~b&23?q^=s,b^=b
|
||||
:b&12?b=3:b|2)||c&2&&~c&1&&++a==++q/2+1&&c&16>(
|
||||
!a|12?a=7,a&=~a:a|4?a=2:a&2)||~c&4&&c&
|
||||
1&&--a<0&&(a+=6)&0)||~c&64&&(**p(b,a,~c))()||
|
||||
c&16)?K,exit(0):1)||c; sc==36?ci(),W,K,exit(0):wmove(r,X(a),Y(b)),
|
||||
W)
|
||||
I(t=Z(0,2),q=s=0; q<3; s+=f[q][t]*f[q++][t])
|
||||
I(sc=0; sc<36&&*((char *)z+sc++)==5; );
|
||||
}
|
||||
i (*d(a,b,c))()i a,b,c;
|
||||
{
|
||||
i x,y;
|
||||
I(x=a>0?a-1:0; x<=(a<5?a+1:5); ++x)
|
||||
I(y=b>0?b-1:0; y<=(b<5?b+1:5); ++y)
|
||||
if(x==a&&y==b&&z[x][y]==(c&2?1:9)||z[x][y]==(c&2?9:1)&&(x!=a||y!=b))Q(ci);
|
||||
I(x=a>0?a-1:0; x<=(a<5?a+1:5); x++)
|
||||
I(y=b>0?b-1:0; y<=(b<5?b+1:5)&&(x==a&&y==b&&(z[x][y]+=(c&2?-1:1))||(z[x][y]+=(c&2?1:-1))); y++); Q(ci);
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
#include <stdio.h>
|
||||
static char *text[] =
|
||||
{
|
||||
"Export of this program from the USA is governed by the US",
|
||||
"Munitions List from the ITAR (International Traffic in Arms",
|
||||
"Regulations). This list gives the specific categories of",
|
||||
"restricted exports and includes cryptographic exports. Traffic",
|
||||
"entirely external to, entirely internal to, or into the USA is",
|
||||
"not restricted.",
|
||||
"To obtain a copy of the program, email to nathan@inmos.co.uk",
|
||||
"with a subject \"IOCCC request\". If you know that your 'From'",
|
||||
"line is incorrect, add a single line",
|
||||
"\"replyto you@your.correct.address\" to the body of the message.",
|
||||
"A deamon will autoreply.",
|
||||
"WARNING: You must not re-export this out of the USA, or else",
|
||||
"the men in black might get you.",
|
||||
NULL
|
||||
};
|
||||
int main()
|
||||
{
|
||||
char **ptr;
|
||||
|
||||
for(ptr = text; *ptr; ptr++)
|
||||
printf("%s\n", *ptr);
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1,210 @@
|
||||
#include <stdio.h>
|
||||
; m(x)(x<0?-1:!!x)
|
||||
; g tj()-J
|
||||
; a(x)(x<0?-x:x)
|
||||
; h(x)((x)<=K?x:N-(x))
|
||||
; f 9999
|
||||
; A return
|
||||
; H printf{
|
||||
; R double
|
||||
; U int
|
||||
; V for
|
||||
; b else
|
||||
; u while
|
||||
; B if
|
||||
U v,w,Y} -1,W,J,p,F,o} f,M,N,K,X,YY,_,P[f],s{ } ;
|
||||
typedef U{ *L} { } ;
|
||||
L q[f];
|
||||
tj{ } {
|
||||
U S} m{ v} +{ m{ w} <<K} ;
|
||||
B{ !S} A J;
|
||||
V{ v} W+S; v!} J&&!q[v]; v+} S} ;
|
||||
A v;
|
||||
}
|
||||
k{ } {
|
||||
_} K;
|
||||
A v?a{ v} >1||w-Y||!q[J]:{ w-Y&&{ w-Y*2||q[W+Y*{ N+1} ]||
|
||||
{ J>>K} -K+{ Y-1} / 2} } ||q[J];
|
||||
}
|
||||
z{ } {
|
||||
_} 5;
|
||||
A v*w||g;
|
||||
}
|
||||
e{ } {
|
||||
_} -2;
|
||||
A{ v*v*v-v||w*w*w-w} &&{ J-W-2||{ W&N} -4||{ W>>K!} { Y-1?N:0} } ||
|
||||
q[W+1]||q[W+2]||q[W+K]!} z||P[W+K]*Y<0} ;
|
||||
}
|
||||
R VR{ } {
|
||||
int PZ} 0x7fff;
|
||||
A{ R} { rand{ } &PZ} /{ R} PZ;
|
||||
}
|
||||
l{ } {
|
||||
_} K+1;
|
||||
A{ v*w&&a{ v} -a{ w} } ||g;
|
||||
}
|
||||
R UC{ } {
|
||||
R { } 0,d;
|
||||
u{ { { +} d} VR{ } } <1.0} ;
|
||||
A d;
|
||||
}
|
||||
c{ } {
|
||||
_} -11;
|
||||
A a{ v} -a{ w} ||g;
|
||||
}
|
||||
I{ ur,n,x} {
|
||||
W} ur;
|
||||
J} n;
|
||||
B{ P[W]!} Y||P[J]} } Y} A J+1;
|
||||
v} { J&N} -{ W&N} ;
|
||||
w} { J>>K} -{ W>>K} ;
|
||||
A q[W]{ } ||{ x&&QL{ W,J,s} } ;
|
||||
}
|
||||
TT{ W} {
|
||||
v} w} 0;
|
||||
A q[W]{ } +K;
|
||||
}
|
||||
s{ } {
|
||||
U j} -1,{ ;
|
||||
Y} -Y;
|
||||
V{ { } 0; { <M; ++{ } {
|
||||
B{ j<0&&P[{ ]} } -Y&&TT{ { } &&_} } -2}
|
||||
{
|
||||
j} { ;
|
||||
{ } -1;
|
||||
}
|
||||
b B{ j>} 0&&!I{ { ,j,0} } A Y} -Y;
|
||||
}
|
||||
A!{ Y} -Y} ;
|
||||
}
|
||||
bb{ } {
|
||||
_} 1;
|
||||
A a{ v*w} -2;
|
||||
}
|
||||
uv{ } {
|
||||
V{ v} 0; v<f; ++v} {
|
||||
B{ h{ v>>K} } } 0} {
|
||||
U S} h{ v&N} ;
|
||||
q[v]} !S?z:{ S} } 1?bb:{ S} } 2?c:{ v&N>K?l:e} } } ;
|
||||
}
|
||||
b B{ h{ v>>K} } } 1} q[v]} k;
|
||||
b q[v]} 0;
|
||||
P[v]} !!q[v]*{ 28-v} ;
|
||||
}
|
||||
}
|
||||
y{ } {
|
||||
U G} Y,{ ;
|
||||
J} 0;
|
||||
V{ { } 0; { <M; ++{ } {
|
||||
{ %8||H"\n%4o ",{ } ;
|
||||
B{ { Y} P[{ ]} m{ P[{ ]} } &&TT{ { } } H"%c ",_+93+Y*16} ;
|
||||
b H"- "} ;
|
||||
}
|
||||
H"\n "} ;
|
||||
do
|
||||
H"%2d",{ ++&N} ;
|
||||
u{ { &N} ;
|
||||
Y} G;
|
||||
H"\n"} ;
|
||||
}
|
||||
O{ W,J} {
|
||||
B{ { q[J]} q[W]} } } k&&h{ J>>K} } } 0} q[J]} l;
|
||||
B{ q[W]} } e} B{ J-W} } 2} O{ J+1,J-1} ;
|
||||
b B{ W-J} } 2} O{ W-1,W+1} ;
|
||||
P[J]} P[W];
|
||||
q[W]} 0;
|
||||
P[W]} 0;
|
||||
}
|
||||
QL{ W,J,D} L D;
|
||||
{
|
||||
U HQ} P[J],YX;
|
||||
L AJ} q[J],XY} q[W];
|
||||
O{ W,J} ;
|
||||
YX} D{ } ;
|
||||
O{ J,W} ;
|
||||
q[J]} AJ;
|
||||
q[W]} XY;
|
||||
P[J]} HQ;
|
||||
A YX;
|
||||
}
|
||||
C{ } {
|
||||
U { ,j,BZ} 0;
|
||||
V{ { } 0; { <M; ++{ } {
|
||||
L Z} q[{ ];
|
||||
B{ Z} {
|
||||
U r} h{ { >>K} +h{ { &N} ,G} Y,
|
||||
S} Z} } z?88:{ Z} } k?11+r+{ P[{ ]<0?N-{ { >>K} :{ { >>K} } :
|
||||
{ Z} } l?124-{ { YY<8&&{ { { &N} !} K||
|
||||
{ { >>K} !} { P[{ ]>0?0:N} } } ?M:0} :
|
||||
{ Z} } c?41+r:{ Z} } e?f-r-r:36+r+r} } } } ;
|
||||
Y} P[{ ];
|
||||
V{ j} 0; j<M; ++j} B{ !I{ { ,j,0} } S+} { P[j]?5:1} ;
|
||||
BZ+} G} } Y?S:-S;
|
||||
Y} G;
|
||||
}
|
||||
}
|
||||
B{ !{ ++X&M-1} } write{ 1,".",1} ;
|
||||
A BZ;
|
||||
}
|
||||
PX{ } {
|
||||
U { ,Q} 0,XP} 0,JZ} M*M,E} -f,t,S} o;
|
||||
B{ !F--} A++F+C{ } ;
|
||||
V{ { } 0; { <JZ; ++{ } B{ !I{ { >>K+K,{ &M-1,1} } {
|
||||
Y} -Y;
|
||||
o} -E;
|
||||
t} -QL{ { >>K+K,{ &M-1,PX} ;
|
||||
Y} -Y;
|
||||
B{ t>E} {
|
||||
++XP;
|
||||
Q} { ;
|
||||
E} t;
|
||||
B{ E>} S}
|
||||
A++F,E;
|
||||
}
|
||||
}
|
||||
B{ !XP} E} s{ } ?-f+1:0;
|
||||
p} Q;
|
||||
A++F,E;
|
||||
}
|
||||
RZ{ } {
|
||||
U { ,j,T} 0;
|
||||
V{ ; ; } {
|
||||
y{ } ;
|
||||
o} f;
|
||||
do{
|
||||
H"\n%d %d %d %s ",X,T,C{ } ,s{ } ?"!":">"} ;
|
||||
fflush{ stdout} ;
|
||||
}
|
||||
u{ scanf{ "%o%o",&{ ,&j} !} 2||I{ { ,j,1} } ;
|
||||
O{ { ,j} ;
|
||||
y{ } ;
|
||||
X} 0;
|
||||
++YY;
|
||||
Y} -Y;
|
||||
T} PX{ } ;
|
||||
{ } p>>{ K<<1} ;
|
||||
j} p&{ M-1} ;
|
||||
B{ I{ { ,j,1} } {
|
||||
H"Rats!\n"} ;
|
||||
A;
|
||||
}
|
||||
O{ { ,j} ;
|
||||
Y} -Y;
|
||||
B{ T>M*M} H"\nHar har.\n"} ;
|
||||
}
|
||||
}
|
||||
main{ ac,av} char**av;
|
||||
{
|
||||
long time{ } ,j} time{ &j} ;
|
||||
R { } 0;
|
||||
srand{ { U} j} ;
|
||||
V{ M} 0; M<} f; ++M} { +} UC{ } ;
|
||||
M} { /100;
|
||||
B{ M&3} ++M;
|
||||
B{ M&1} --M;
|
||||
V{ N} 1; N*N<M; ++N} ;
|
||||
K} --N/2;
|
||||
F} ac>1?atoi{ av[1]} :2;
|
||||
uv{ } ;
|
||||
RZ{ } ;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
main(l
|
||||
,a,n,d)char**a;{
|
||||
for(d=atoi(a[1])/10*80-
|
||||
atoi(a[2])/5-596;n="@NKA\
|
||||
CLCCGZAAQBEAADAFaISADJABBA^\
|
||||
SNLGAQABDAXIMBAACTBATAHDBAN\
|
||||
ZcEMMCCCCAAhEIJFAEAAABAfHJE\
|
||||
TBdFLDAANEfDNBPHdBcBBBEA_AL\
|
||||
H E L L O, W O R L D! "
|
||||
[l++-3];)for(;n-->64;)
|
||||
putchar(!d+++33^
|
||||
l&1);}
|
||||
Reference in new issue
Block a user