Result

WA

Duration

1710ms

Code [DL]

import std.stdio;
void main(){
string s = readln;
for(int i=0;i<50;i++)write(s[i]&s[i+5]&s[i+12]&s[i+17]);
}

stdin

10000100101001101110001010001000000000011000010000

stdout

484848484849484848484848484848484848484848484848484848484848484848

stderr

core.exception.RangeError@/tmp/code.d(4): Range violation
----------------
0x43d7ea onRangeError
	../../../../src/libphobos/libdruntime/core/exception.d:471
0x43da2a _d_arraybounds
	../../../../src/libphobos/libdruntime/core/exception.d:642
0x403d33 _Dmain
	???:0
0x44558e _D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ6runAllMFZ9__lambda1MFZv
	../../../../src/libphobos/libdruntime/rt/dmain2.d:476
0x445701 void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).tryExec(scope void delegate())
	../../../../src/libphobos/libdruntime/rt/dmain2.d:451
0x445b08 void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).runAll()
	../../../../src/libphobos/libdruntime/rt/dmain2.d:476
0x445701 void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).tryExec(scope void delegate())
	../../../../src/libphobos/libdruntime/rt/dmain2.d:451
0x4458b6 _d_run_main
	../../../../src/libphobos/libdruntime/rt/dmain2.d:484
0x403bba main
	???:0
0x7f780d36882f __libc_start_main
	???:0
0x403ac8 _start
	???:0
0xffffffffffffffff ???
	???:0

strace