Result

AC

Duration

1065ms

Code [DL]

define a:readline
if(eq ($a::slice 1 2) ($a::slice 2 3)){
echo:$a::slice 2 3
}else:echo:$a::slice 4 5
source $0

stdin

899 621
499 969
231 224
162 367
162 175
723 237
973 131
297 757
667 774
261 815
228 891
296 696
574 771
574 773
955 853
611 278
477 779
588 225
438 368
367 642
651 117
115 617
291 134
685 855
259 957
866 448
822 216
742 127
767 897
259 331
211 119
577 173

stdout

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

stderr

CODE: 2: error/runtime: slice starts after last element

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffe346b0930 /* 7 vars */) = 0
11    execve("/bin/cat", ["cat", "-"], 0x55671c4a4048 /* 7 vars */) = 0
13    execve("/usr/bin/go", ["/usr/bin/go", "env", "GOPATH"], 0x55671c4a4078 /* 7 vars */ <unfinished ...>
11    +++ exited with 0 +++
13    <... execve resumed>)             = 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} ---
16    +++ exited with 0 +++
14    +++ exited with 0 +++
15    +++ exited with 0 +++
17    +++ 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"], 0x55671c4a4068 /* 7 vars */) = 0
23    +++ exited with 0 +++
20    +++ exited with 0 +++
18    +++ exited with 0 +++
22    +++ exited with 0 +++
19    +++ exited with 0 +++
21    +++ 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=5, si_stime=6} ---
10    +++ exited with 0 +++