Fix 2000/natori

With clang it did not compile at all; with gcc it segfaulted. Now it
works properly. It's a crescent moon today and that's exactly what is
being shown. This required another function but since it wasn't a
one-liner this doesn't cause any problems with the award either.
This commit is contained in:
Cody Boone Ferguson committed 2023-03-20 09:23:09 -07:00
1 parent e2b2a83f05
commit 20849dd0d5
2 files changed
+10 -1

No files matched your search

+4 -1
View File
@@ -1 +1,4 @@
double l;main(int _,char**o,char**O){return putchar((_--+22&&_+44&&main(_,-43,_),_&&(int)o)?(main(-43,++(int)o,(int)O),((l=((int)o+21)/sqrt(3-(int)O*22-(int)O*(int)O),l*l<4&&(fabs(((time(0)-607728)%2551443)/405859.-4.7+acos(l/2))<1.57))[" #"])):10);}
double l;
int moon(int _, int o, int O){
return putchar((_--+22&&_+44&&main(_,-43,_),_&&(int)o)?(main(-43,(int)++o,(int)O),((l=((int)o+21)/sqrt(3-(int)O*22-(int)O*(int)O),l*l<4&&(fabs(((time(0)-607728)%2551443)/405859.-4.7+acos(l/2))<1.57))[" #"])):10);}
main(int _,char**o,char**O){return moon(_, (int)o, (int)O); }