Result

AC

Duration

916ms

Code [DL]

define l
while(set l:readline){
if(eq(l::slice 1 2)(l::slice 2 3)){
echo (l::slice 1 2)
} else {
echo (l::slice 4 5)
}
}

stdin

946 968
167 967
971 746
184 497
881 199
299 193
367 338
155 243
594 448
948 347
988 889
426 622
688 775
311 116
849 227
355 576
218 114
266 391
345 455
451 413
299 796
164 663
818 884
955 588
548 482
958 724
783 944
445 467
272 275
557 563
877 998
445 775

stdout

9
9
7
4
1
9
3
5
4
3
8
6
8
1
2
5
1
6
4
4
9
6
8
5
4
7
9
4
2
5
7
7

stderr

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffeeb520d80 /* 7 vars */) = 0
11    execve("/bin/cat", ["cat", "-"], 0x563be98df048 /* 7 vars */) = 0
13    execve("/usr/bin/go", ["/usr/bin/go", "env", "GOPATH"], 0x563be98df078 /* 7 vars */ <unfinished ...>
11    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=11, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
13    <... execve resumed>)             = 0
18    +++ exited with 0 +++
17    +++ exited with 0 +++
16    +++ exited with 0 +++
15    +++ exited with 0 +++
14    +++ exited with 0 +++
13    +++ exited with 0 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
12    execve("/root/go/bin/oh", ["/root/go/bin/oh", "/volume/CODE"], 0x563be98df068 /* 7 vars */) = 0
19    +++ exited with 0 +++
24    +++ exited with 0 +++
23    +++ exited with 0 +++
21    +++ exited with 0 +++
20    +++ exited with 0 +++
22    +++ exited with 0 +++
12    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=12, si_uid=0, si_status=0, si_utime=1, si_stime=9} ---
10    +++ exited with 0 +++