Result

AC

Duration

1062ms

Code [DL]

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

stdin

352 187
744 442
645 745
711 756
464 338
536 276
651 916
254 884
712 121
155 557
199 334
957 757
655 659
177 744
144 424
329 299
766 867
646 661
664 663
425 523
988 834
277 223
578 886
244 831
362 631
894 395
689 913
194 452
762 234
895 993
871 765
819 896

stdout

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

stderr

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

strace

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