Result

WA

Duration

1129ms

Code [DL]

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

stdin

936 965
311 717
824 245
284 485
244 467
211 112
181 185
574 779
211 662
488 889
243 332
532 336
815 973
577 961
815 911
656 859
712 556
972 782
653 532
299 358
162 267
944 742
829 245
483 713
741 152
954 422
215 552
458 488
214 667
155 793
977 765
466 113

stdout

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

stderr

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffd4741cca0 /* 7 vars */) = 0
11    execve("/bin/cat", ["cat", "-"], 0x560992ef4048 /* 7 vars */) = 0
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("/usr/bin/go", ["/usr/bin/go", "env", "GOPATH"], 0x560992ef4078 /* 7 vars */) = 0
15    +++ exited with 0 +++
16    +++ exited with 0 +++
17    +++ 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"], 0x560992ef4068 /* 7 vars */) = 0
23    +++ exited with 0 +++
22    +++ exited with 0 +++
21    +++ exited with 0 +++
20    +++ exited with 0 +++
19    +++ exited with 0 +++
18    +++ 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=0, si_stime=7} ---
10    +++ exited with 0 +++