Skip to content
Permalink
7b1803ce9f
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
21 lines (21 sloc) 436 Bytes
#define c(a,x) *p+3==*#a?x:
#define o(a,r) c(a, (*++s = *s r *(s-1), d))
main(d) {
char q[2001],*p=q,*s;
for (gets(p);;)
p+=d=
c(1, (printf("%d\n", *s++),d))
c(y, 80)
c(a, -80)
c(A, 1)
c(?, -1)
c(, *s++ ? -80 : 80)
c(b, *s++ ? -1 : 1)
o(., +)
o(0, -)
o(2, /)
o(-, *)
c(#, d)
c(C, p)
(*--s = *p - '0', d);
}