Result

WA

Duration

1156ms

Code [DL]

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

stdin

922 229
656 993
137 774
641 448
566 575
455 553
173 733
922 621
313 972
521 219
151 833
482 421
738 896
911 421
998 286
756 155
177 229
478 755
268 667
321 168
192 229
964 963
522 231
473 378
465 335
544 786
411 123
799 794
855 114
625 264
716 616
341 118

stdout

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

stderr

strace

11    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffe5c0e4390 /* 9 vars */) = 0
12    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x5587bad4bd18 /* 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/bash-busybox/code.bas"...], 0x5587bad4bd68 /* 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", "-"], 0x5587bafe90d8 /* 9 vars */) = 0
15    execve("/usr/sbin/jk_chrootlaunch", ["jk_chrootlaunch", "-j", "/opt/jails/bash-busybox", "-x", "/bin/bash", "/code.bash"], 0x5587bafe91c0 /* 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/bash", ["/bin/bash", "/code.bash"], 0x7fff5133d170 /* 9 vars */) = 0
16    execve("/bin/sed", ["sed", "s/.*\\(.\\)\\1\\?.*/\\1/"], 0x5619a4d8d880 /* 10 vars */) = 0
16    +++ exited with 0 +++
15    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=16, si_uid=0, si_status=0, si_utime=0, si_stime=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=0, si_stime=1} ---
17    execve("/bin/rm", ["rm", "/opt/jails/bash-busybox/code.bas"...], 0x5587bad4bcc8 /* 9 vars */) = 0
17    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=17, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
11    +++ exited with 0 +++