Result

WA

Duration

1297ms

Code [DL]

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

stdin

945 445
419 424
418 887
143 324
244 995
382 414
835 889
511 955
891 199
688 824
549 344
429 762
962 629
951 163
251 588
177 776
744 338
262 525
878 778
249 513
651 458
993 946
395 226
699 891
858 881
299 993
881 815
458 181
731 134
533 745
522 525
255 561

stdout

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

stderr

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffc98b1d3a0 /* 9 vars */) = 0
11    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x5565bf21fd18 /* 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"...], 0x5565bf21fd68 /* 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", "-"], 0x5565c098d0d8 /* 9 vars */) = 0
13    +++ exited with 0 +++
14    execve("/usr/sbin/jk_chrootlaunch", ["jk_chrootlaunch", "-j", "/opt/jails/bash-busybox", "-x", "/bin/bash", "/code.bash"], 0x5565c098d1c0 /* 9 vars */) = 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"], 0x7ffc848d0d10 /* 9 vars */) = 0
15    execve("/bin/sed", ["sed", "s/.*\\(.\\)\\(\\1\\|\\).*/\\1/"], 0x55a75a19b880 /* 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=0} ---
16    execve("/bin/rm", ["rm", "/opt/jails/bash-busybox/code.bas"...], 0x5565bf21fcc8 /* 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 +++