by@kurgm
WA
1658ms
import std.stdio;void main(){int i=0;for(string s=readln;i<50;i++)write(i<34?s[i]&s[i+5]&s[i+12]&s[i+17]&1:0);}
10100010000000100000010110011010100000110011110000
000000000000000000000000000100000
core.exception.RangeError@/tmp/code.d(1): Range violation ---------------- 0x43d7fa onRangeError ../../../../src/libphobos/libdruntime/core/exception.d:471 0x43da3a _d_arraybounds ../../../../src/libphobos/libdruntime/core/exception.d:642 0x403d3d _Dmain ???:0 0x44559e _D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ6runAllMFZ9__lambda1MFZv ../../../../src/libphobos/libdruntime/rt/dmain2.d:476 0x445711 void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).tryExec(scope void delegate()) ../../../../src/libphobos/libdruntime/rt/dmain2.d:451 0x445b18 void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).runAll() ../../../../src/libphobos/libdruntime/rt/dmain2.d:476 0x445711 void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).tryExec(scope void delegate()) ../../../../src/libphobos/libdruntime/rt/dmain2.d:451 0x4458c6 _d_run_main ../../../../src/libphobos/libdruntime/rt/dmain2.d:484 0x403bba main ???:0 0x7fd7b0b8582f __libc_start_main ???:0 0x403ac8 _start ???:0 0xffffffffffffffff ??? ???:0