Result

WA

Duration

848ms

Code [DL]

while read -n1 _
read -n1 b
[ $b = read -n1 ]&&echo $b||read -n2
read _
end

stdin

577 649
556 621
366 994
549 778
113 319
526 427
166 669
823 945
772 679
511 187
255 856
164 472
794 446
833 355
474 747
241 413
515 126
388 384
322 771
894 448
898 994
813 554
355 558
964 248
267 661
177 266
253 949
252 256
852 169
678 484
355 423
927 251

stdout

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

stderr

[: Expected a combining operator like '-a' at index 3

/code.fish (line 3): 
[ $b = read -n1 ]&&echo $b||read -n2
^

(Type 'help [' for related documentation)
[: Expected a combining operator like '-a' at index 3

/code.fish (line 3): 
[ $b = read -n1 ]&&echo $b||read -n2
^

(Type 'help [' for related documentation)
[: Expected a combining operator like '-a' at index 3

/code.fish (line 3): 
[ $b = read -n1 ]&&echo $b||read -n2
^

(Type 'help [' for related documentation)
[: Expected a combining operator like '-a' at index 3

/code.fish (line 3): 
[ $b = read -n1 ]&&echo $b||read -n2
^

(Type 'help [' for related documentation)
[: Expected a combining operator like '-a' at index 3

/code.fish (line 3): 
[ $b = read -n1 ]&&echo $b||read -n2
^

(Type 'help [' for related documentation)
[: Expected a combining operator like '-a' at index 3

/code.fish (line 3): 
[ $b = read -n1 ]&&echo $b||read -n2
^

(Type 'help [' for related documentation)
[: Expected a combining operator like '-a' at index 3

/code.fish (line 3): 
[ $b = read -n1 ]&&echo $b||read -n2
^

(Type 'help [' for related documentation)
[: Expected a combining operator like '-a' at index 3

/code.fish (line 3): 
[ $b = read -n1 ]&&echo $b||read -n2
^

(Type 'help [' for related documentation)
[: Expected a combining operator like '-a' at index 3

/code.fish (line 3): 
[ $b = read -n1 ]&&echo $b||read -n2
^

(Type 'help [' for related documentation)
[: Expected a combining operator like '-a' at index 3

/code.fish (line 3): 
[ $b = read -n1 ]&&echo $b||read -n2
^

(Type 'help [' for related documentation)
[: Expected a combining operator like '-a' at index 3

/code.fish (line 3): 
[ $b = read -n1 ]&&echo $b||read -n2
^

(Type 'help [' for related documentation)
[: Expected a combining operator like '-a' at index 3

/code.fish (line 3): 
[ $b = read -n1 ]&&echo $b||read -n2
^

(Type 'help [' for related documentation)
[: Expected a combining operator like '-a' at index 3

/code.fish (line 3): 
[ $b = read -n1 ]&&echo $b||read -n2
^

(Type 'help [' for related documentation)
[: Expected a combining operator like '-a' at index 3

/code.fish (line 3): 
[ $b = read -n1 ]&&echo $b||read -n2
^

(Type 'help [' for related documentation)
[: Expected a combining operator like '-a' at index 3

/code.fish (line 3): 
[ $b = read -n1 ]&&echo $b||read -n2
^

(Type 'help [' for related documentation)
[: Expected a combining operator like '-a' at index 3

/code.fish (line 3): 
[ $b = read -n1 ]&&echo $b||read -n2
^

(Type 'help [' for related documentation)
[: Expected a combining operator like '-a' at index 3

/code.fish (line 3): 
[ $b = read -n1 ]&&echo $b||read -n2
^

(Type 'help [' for related documentation)
[: Expected a combining operator like '-a' at index 3

/code.fish (line 3): 
[ $b = read -n1 ]&&echo $b||read -n2
^

(Type 'help [' for related documentation)
[: Expected a combining operator like '-a' at index 3

/code.fish (line 3): 
[ $b = read -n1 ]&&echo $b||read -n2
^

(Type 'help [' for related documentation)
[: Expected a combining operator like '-a' at index 3

/code.fish (line 3): 
[ $b = read -n1 ]&&echo $b||read -n2
^

(Type 'help [' for related documentation)
[: Expected a combining operator like '-a' at index 3

/code.fish (line 3): 
[ $b = read -n1 ]&&echo $b||read -n2
^

(Type 'help [' for related documentation)
[: Expected a combining operator like '-a' at index 3

/code.fish (line 3): 
[ $b = read -n1 ]&&echo $b||read -n2
^

(Type 'help [' for related documentation)
[: Expected a combining operator like '-a' at index 3

/code.fish (line 3): 
[ $b = read -n1 ]&&echo $b||read -n2
^

(Type 'help [' for related documentation)
[: Expected a combining operator like '-a' at index 3

/code.fish (line 3): 
[ $b = read -n1 ]&&echo $b||read -n2
^

(Type 'help [' for related documentation)
[: Expected a combining operator like '-a' at index 3

/code.fish (line 3): 
[ $b = read -n1 ]&&echo $b||read -n2
^

(Type 'help [' for related documentation)
[: Expected a combining operator like '-a' at index 3

/code.fish (line 3): 
[ $b = read -n1 ]&&echo $b||read -n2
^

(Type 'help [' for related documentation)
[: Expected a combining operator like '-a' at index 3

/code.fish (line 3): 
[ $b = read -n1 ]&&echo $b||read -n2
^

(Type 'help [' for related documentation)
[: Expected a combining operator like '-a' at index 3

/code.fish (line 3): 
[ $b = read -n1 ]&&echo $b||read -n2
^

(Type 'help [' for related documentation)
[: Expected a combining operator like '-a' at index 3

/code.fish (line 3): 
[ $b = read -n1 ]&&echo $b||read -n2
^

(Type 'help [' for related documentation)
[: Expected a combining operator like '-a' at index 3

/code.fish (line 3): 
[ $b = read -n1 ]&&echo $b||read -n2
^

(Type 'help [' for related documentation)
[: Expected a combining operator like '-a' at index 3

/code.fish (line 3): 
[ $b = read -n1 ]&&echo $b||read -n2
^

(Type 'help [' for related documentation)
[: Expected a combining operator like '-a' at index 3

/code.fish (line 3): 
[ $b = read -n1 ]&&echo $b||read -n2
^

(Type 'help [' for related documentation)

strace

11    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffe04ce7190 /* 9 vars */) = 0
12    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x5605aae9dd18 /* 9 vars */) = 0
12    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=12, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
13    execve("/bin/cp", ["cp", "-f", "/volume/CODE", "/opt/jails/fish-shell-pure/code."...], 0x5605aae9dd68 /* 9 vars */) = 0
13    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
14    execve("/bin/cat", ["cat", "-"], 0x5605ab9be0e0 /* 9 vars */) = 0
15    execve("/usr/sbin/jk_chrootlaunch", ["jk_chrootlaunch", "-j", "/opt/jails/fish-shell-pure", "-x", "/bin/fish", "/code.fish"], 0x5605ab9be1b0 /* 9 vars */) = 0
14    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=14, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
15    execve("/bin/fish", ["/bin/fish", "/code.fish"], 0x7ffcb5528ad0 /* 9 vars */) = 0
15    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=15, si_uid=0, si_status=0, si_utime=1, si_stime=2} ---
16    execve("/bin/rm", ["rm", "/opt/jails/fish-shell-pure/code."...], 0x5605aae9dcc8 /* 9 vars */) = 0
16    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=16, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
11    +++ exited with 0 +++