// Public Domain // Author: John Tromp // Source: IOCCC 2012 #include "libc/runtime/runtime.h" #include "tool/lambda/lib/blc.h" #if defined __GNUC__ && __GNUC__ >= 14 #pragma GCC diagnostic ignored "-Wimplicit-function-declaration" #pragma GCC diagnostic ignored "-Wincompatible-pointer-types" #pragma GCC diagnostic ignored "-Wreturn-mismatch" #pragma GCC diagnostic ignored "-Wint-conversion" #pragma GCC diagnostic ignored "-Wimplicit-int" #endif #define A 500000 #define X 8 #define Int long // clang-format off Int L[A],m,b,*D=A, *c,*a=L,C,*U=L,u;s (_){u--&&s(a=*a);} char*B,I,O;S(){b=b --?b:m|read(0,&I,1 )-1;return~I>>b&1; }k(l,u){for(;l<=u; U-L