Result

WA

Duration

844ms

Code [DL]

sed 's/.*\(.\)\(\1\| \).*/\1/'

stdin

377 776
552 553
733 442
618 184
293 918
153 536
577 779
629 223
986 226
358 458
669 774
916 626
669 391
739 673
217 913
722 185
546 667
244 339
556 528
354 225
899 922
884 572
522 296
452 229
499 192
963 363
315 542
295 628
939 492
377 848
922 722
471 178

stdout

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

stderr

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffcb86a3760 /* 9 vars */) = 0
11    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x561bdb3e7d18 /* 9 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} ---
12    execve("/bin/cp", ["cp", "-f", "/volume/CODE", "/opt/jails/bash-busybox/code.bas"...], 0x561bdb3e7d68 /* 9 vars */) = 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=0, si_stime=0} ---
13    execve("/bin/cat", ["cat", "-"], 0x561bdb6c00d8 /* 9 vars */) = 0
14    execve("/usr/sbin/jk_chrootlaunch", ["jk_chrootlaunch", "-j", "/opt/jails/bash-busybox", "-x", "/bin/bash", "/code.bash"], 0x561bdb6c01c0 /* 9 vars */) = 0
13    +++ exited with 0 +++
10    --- 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/bash", ["/bin/bash", "/code.bash"], 0x7fff275f5460 /* 9 vars */) = 0
15    execve("/bin/sed", ["sed", "s/.*\\(.\\)\\(\\1\\| \\).*/\\1/"], 0x55c8d7fd7880 /* 10 vars */) = 0
15    +++ exited with 0 +++
14    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=15, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
14    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=14, si_uid=0, si_status=0, si_utime=0, si_stime=1} ---
16    execve("/bin/rm", ["rm", "/opt/jails/bash-busybox/code.bas"...], 0x561bdb3e7cc8 /* 9 vars */) = 0
16    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=16, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
10    +++ exited with 0 +++