Result

AC

Duration

1047ms

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

699 591
232 132
753 332
982 294
672 551
812 272
673 172
388 187
624 139
255 774
411 118
998 584
546 447
488 576
822 755
763 332
486 446
878 743
158 589
664 465
635 642
637 739
546 464
422 285
435 725
172 774
122 223
611 158
815 893
361 675
836 167
633 448

stdout

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

stderr

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

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffe46d63380 /* 7 vars */) = 0
11    execve("/bin/cat", ["cat", "-"], 0x558f22bca048 /* 7 vars */) = 0
13    execve("/usr/bin/go", ["/usr/bin/go", "env", "GOPATH"], 0x558f22bca078 /* 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} ---
16    +++ exited with 0 +++
15    +++ 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"], 0x558f22bca068 /* 7 vars */) = 0
22    +++ exited with 0 +++
21    +++ exited with 0 +++
23    +++ exited with 0 +++
19    +++ exited with 0 +++
18    +++ exited with 0 +++
20    +++ 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=5} ---
10    +++ exited with 0 +++