Result

AC

Duration

888ms

Code [DL]

read l
set a (string sub -s 2 -l 1 $l)
set b (string sub -s 3 -l 1 $l)
if test $a = $b
 string sub -s 2 -l 1 $l
else
 string sub -s 5 -l 1 $l
end



read l
set a (string sub -s 2 -l 1 $l)
set b (string sub -s 3 -l 1 $l)
if test $a = $b
 string sub -s 2 -l 1 $l
else
 string sub -s 5 -l 1 $l
end



read l
set a (string sub -s 2 -l 1 $l)
set b (string sub -s 3 -l 1 $l)
if test $a = $b
 string sub -s 2 -l 1 $l
else
 string sub -s 5 -l 1 $l
end



read l
set a (string sub -s 2 -l 1 $l)
set b (string sub -s 3 -l 1 $l)
if test $a = $b
 string sub -s 2 -l 1 $l
else
 string sub -s 5 -l 1 $l
end



read l
set a (string sub -s 2 -l 1 $l)
set b (string sub -s 3 -l 1 $l)
if test $a = $b
 string sub -s 2 -l 1 $l
else
 string sub -s 5 -l 1 $l
end



read l
set a (string sub -s 2 -l 1 $l)
set b (string sub -s 3 -l 1 $l)
if test $a = $b
 string sub -s 2 -l 1 $l
else
 string sub -s 5 -l 1 $l
end



read l
set a (string sub -s 2 -l 1 $l)
set b (string sub -s 3 -l 1 $l)
if test $a = $b
 string sub -s 2 -l 1 $l
else
 string sub -s 5 -l 1 $l
end



read l
set a (string sub -s 2 -l 1 $l)
set b (string sub -s 3 -l 1 $l)
if test $a = $b
 string sub -s 2 -l 1 $l
else
 string sub -s 5 -l 1 $l
end



read l
set a (string sub -s 2 -l 1 $l)
set b (string sub -s 3 -l 1 $l)
if test $a = $b
 string sub -s 2 -l 1 $l
else
 string sub -s 5 -l 1 $l
end



read l
set a (string sub -s 2 -l 1 $l)
set b (string sub -s 3 -l 1 $l)
if test $a = $b
 string sub -s 2 -l 1 $l
else
 string sub -s 5 -l 1 $l
end



read l
set a (string sub -s 2 -l 1 $l)
set b (string sub -s 3 -l 1 $l)
if test $a = $b
 string sub -s 2 -l 1 $l
else
 string sub -s 5 -l 1 $l
end



read l
set a (string sub -s 2 -l 1 $l)
set b (string sub -s 3 -l 1 $l)
if test $a = $b
 string sub -s 2 -l 1 $l
else
 string sub -s 5 -l 1 $l
end



read l
set a (string sub -s 2 -l 1 $l)
set b (string sub -s 3 -l 1 $l)
if test $a = $b
 string sub -s 2 -l 1 $l
else
 string sub -s 5 -l 1 $l
end



read l
set a (string sub -s 2 -l 1 $l)
set b (string sub -s 3 -l 1 $l)
if test $a = $b
 string sub -s 2 -l 1 $l
else
 string sub -s 5 -l 1 $l
end



read l
set a (string sub -s 2 -l 1 $l)
set b (string sub -s 3 -l 1 $l)
if test $a = $b
 string sub -s 2 -l 1 $l
else
 string sub -s 5 -l 1 $l
end



read l
set a (string sub -s 2 -l 1 $l)
set b (string sub -s 3 -l 1 $l)
if test $a = $b
 string sub -s 2 -l 1 $l
else
 string sub -s 5 -l 1 $l
end



read l
set a (string sub -s 2 -l 1 $l)
set b (string sub -s 3 -l 1 $l)
if test $a = $b
 string sub -s 2 -l 1 $l
else
 string sub -s 5 -l 1 $l
end



read l
set a (string sub -s 2 -l 1 $l)
set b (string sub -s 3 -l 1 $l)
if test $a = $b
 string sub -s 2 -l 1 $l
else
 string sub -s 5 -l 1 $l
end



read l
set a (string sub -s 2 -l 1 $l)
set b (string sub -s 3 -l 1 $l)
if test $a = $b
 string sub -s 2 -l 1 $l
else
 string sub -s 5 -l 1 $l
end



read l
set a (string sub -s 2 -l 1 $l)
set b (string sub -s 3 -l 1 $l)
if test $a = $b
 string sub -s 2 -l 1 $l
else
 string sub -s 5 -l 1 $l
end



read l
set a (string sub -s 2 -l 1 $l)
set b (string sub -s 3 -l 1 $l)
if test $a = $b
 string sub -s 2 -l 1 $l
else
 string sub -s 5 -l 1 $l
end



read l
set a (string sub -s 2 -l 1 $l)
set b (string sub -s 3 -l 1 $l)
if test $a = $b
 string sub -s 2 -l 1 $l
else
 string sub -s 5 -l 1 $l
end



read l
set a (string sub -s 2 -l 1 $l)
set b (string sub -s 3 -l 1 $l)
if test $a = $b
 string sub -s 2 -l 1 $l
else
 string sub -s 5 -l 1 $l
end



read l
set a (string sub -s 2 -l 1 $l)
set b (string sub -s 3 -l 1 $l)
if test $a = $b
 string sub -s 2 -l 1 $l
else
 string sub -s 5 -l 1 $l
end



read l
set a (string sub -s 2 -l 1 $l)
set b (string sub -s 3 -l 1 $l)
if test $a = $b
 string sub -s 2 -l 1 $l
else
 string sub -s 5 -l 1 $l
end



read l
set a (string sub -s 2 -l 1 $l)
set b (string sub -s 3 -l 1 $l)
if test $a = $b
 string sub -s 2 -l 1 $l
else
 string sub -s 5 -l 1 $l
end



read l
set a (string sub -s 2 -l 1 $l)
set b (string sub -s 3 -l 1 $l)
if test $a = $b
 string sub -s 2 -l 1 $l
else
 string sub -s 5 -l 1 $l
end



read l
set a (string sub -s 2 -l 1 $l)
set b (string sub -s 3 -l 1 $l)
if test $a = $b
 string sub -s 2 -l 1 $l
else
 string sub -s 5 -l 1 $l
end



read l
set a (string sub -s 2 -l 1 $l)
set b (string sub -s 3 -l 1 $l)
if test $a = $b
 string sub -s 2 -l 1 $l
else
 string sub -s 5 -l 1 $l
end



read l
set a (string sub -s 2 -l 1 $l)
set b (string sub -s 3 -l 1 $l)
if test $a = $b
 string sub -s 2 -l 1 $l
else
 string sub -s 5 -l 1 $l
end



read l
set a (string sub -s 2 -l 1 $l)
set b (string sub -s 3 -l 1 $l)
if test $a = $b
 string sub -s 2 -l 1 $l
else
 string sub -s 5 -l 1 $l
end



read l
set a (string sub -s 2 -l 1 $l)
set b (string sub -s 3 -l 1 $l)
if test $a = $b
 string sub -s 2 -l 1 $l
else
 string sub -s 5 -l 1 $l
end



stdin

939 556
655 895
537 727
591 992
711 773
655 558
638 282
166 514
786 876
879 793
644 146
961 669
869 261
412 177
424 425
166 119
464 226
663 785
228 125
988 786
598 571
729 998
322 266
149 974
822 224
693 182
576 764
595 598
135 558
844 423
772 125
377 433

stdout

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

stderr

strace

16    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffc01971240 /* 9 vars */) = 0
17    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x55a6dfecad18 /* 9 vars */) = 0
17    +++ exited with 0 +++
16    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=17, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
18    execve("/bin/cp", ["cp", "-f", "/volume/CODE", "/opt/jails/fish-shell-pure/code."...], 0x55a6dfecad68 /* 9 vars */) = 0
18    +++ exited with 0 +++
16    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=18, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
19    execve("/bin/cat", ["cat", "-"], 0x55a6e07a70e0 /* 9 vars */) = 0
20    execve("/usr/sbin/jk_chrootlaunch", ["jk_chrootlaunch", "-j", "/opt/jails/fish-shell-pure", "-x", "/bin/fish", "/code.fish"], 0x55a6e07a71b0 /* 9 vars */ <unfinished ...>
19    +++ exited with 0 +++
16    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=19, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
20    <... execve resumed>)             = 0
20    execve("/bin/fish", ["/bin/fish", "/code.fish"], 0x7ffe57268540 /* 9 vars */) = 0
21    +++ exited with 0 +++
20    +++ exited with 0 +++
16    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=20, si_uid=0, si_status=0, si_utime=2, si_stime=1} ---
22    execve("/bin/rm", ["rm", "/opt/jails/fish-shell-pure/code."...], 0x55a6dfecacc8 /* 9 vars */) = 0
22    +++ exited with 0 +++
16    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=22, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
16    +++ exited with 0 +++