fix 1989/ovdluhe/ovdluhe.c

This commit is contained in:
Landon Curt Noll committed 2023-02-21 18:26:55 -08:00
1 parent 197d59a3cd
commit 9645d7594e
1 file changed
+9 -10
+9 -10
View File
@@ -1,15 +1,14 @@
#include <string.h> #include <string.h>
typedef char ape typedef char ape
#define D define #define EA register
#D EA register #define EP unsigned
#D EP unsigned #define A 1
#D A 1 #define AP (A<<A)
#D AP (A<<A) #define P (A<<AP)
#D P (A<<AP) #define AE ((P<<P)<<A)
#D AE ((P<<P)<<A) #define PE (((A<<P)<<P)<<P)
#D PE (((A<<P)<<P)<<P) #define E ((EP)A>>A)
#D E ((EP)A>>A) #define APE {EA EP ape,ea=AE;while(ea--) e[ea]=E;}
#D APE {EA EP ape ea=AE;while(ea--) e[ea]=E;}
;ape a[PE+A],ap,*ae,p[P+A],e[AE]; ;ape a[PE+A],ap,*ae,p[P+A],e[AE];
main(){ape pe,*ep=a;srand((EP)time((long)E)); main(){ape pe,*ep=a;srand((EP)time((long)E));
while(((*(ep++)=getchar())!=-A)&&((ep-a)<PE)); while(((*(ep++)=getchar())!=-A)&&((ep-a)<PE));