Result

WA

Duration

1319ms

Code [DL]

export.
f()->{_,[B,C,E]}=io:fread("","~*c~c~c ~c~*s"),io:format(if B==C->B;1>0->E end).
main(_)->main(f()).

stdin

155 561
212 179
475 572
542 442
193 934
638 885
618 981
381 816
355 335
699 547
133 338
244 448
933 566
844 456
179 976
275 885
883 183
836 116
383 823
312 119
677 874
463 477
973 334
361 122
255 951
784 157
499 448
243 942
558 284
248 156
486 626
261 681

stdout

51549898593434981181743151992166escript: exception error: no match of right hand side value eof

stderr

strace

11    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffce65269d0 /* 7 vars */) = 0
12    execve("/bin/cat", ["cat", "-"], 0x555e42de6d38 /* 7 vars */) = 0
13    execve("/usr/bin/escript", ["/usr/bin/escript", "/volume/CODE"], 0x555e42de6d50 /* 7 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("/usr/bin/erl", ["/usr/bin/erl", "+B", "-boot", "no_dot_erlang", "-noshell", "-run", "escript", "start", "-extra", "/volume/CODE"], 0x559bfa51c5e0 /* 8 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} ---
16    execve("/bin/sed", ["sed", "s/.*\\///"], 0x5632cdd39168 /* 8 vars */) = 0
16    +++ exited with 0 +++
14    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=16, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
14    +++ exited with 0 +++
13    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=14, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
13    execve("/usr/lib/erlang/erts-10.6.4/bin/erlexec", ["/usr/lib/erlang/erts-10.6.4/bin/"..., "+B", "-boot", "no_dot_erlang", "-noshell", "-run", "escript", "start", "-extra", "/volume/CODE"], 0x5632cdd39170 /* 12 vars */) = 0
13    execve("/usr/lib/erlang/erts-10.6.4/bin/beam.smp", ["/volume/CODE", "-B", "--", "-root", "/usr/lib/erlang", "-progname", "erl", "--", "-home", "/root", "--", "-boot", "no_dot_erlang", "-noshell", "-run", "escript", "start", "--", "-extra", "/volume/CODE"], 0x7ffc7bcb4800 /* 12 vars */) = 0
20    execve("/usr/lib/erlang/erts-10.6.4/bin/erl_child_setup", ["erl_child_setup", "1024"], 0x7fff374018e0 /* 12 vars */) = 0
37    execve("/bin/sh", ["sh", "-c", "exec inet_gethost 4 "], 0x7f0910e34660 /* 12 vars */) = 0
37    execve("/usr/lib/erlang/erts-10.6.4/bin/inet_gethost", ["inet_gethost", "4"], 0x562e81c51cf8 /* 12 vars */) = 0
37    +++ exited with 0 +++
20    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=37, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
38    --- SIGUSR1 {si_signo=SIGUSR1, si_code=SI_USER, si_pid=37, si_uid=0} ---
38    +++ killed by SIGUSR1 +++
19    +++ exited with 0 +++
36    +++ exited with 127 +++
35    +++ exited with 127 +++
34    +++ exited with 127 +++
33    +++ exited with 127 +++
32    +++ exited with 127 +++
31    +++ exited with 127 +++
30    +++ exited with 127 +++
29    +++ exited with 127 +++
28    +++ exited with 127 +++
27    +++ exited with 127 +++
26    +++ exited with 127 +++
25    +++ exited with 127 +++
24    +++ exited with 127 +++
23    +++ exited with 127 +++
21    +++ exited with 127 +++
18    +++ exited with 127 +++
17    +++ exited with 127 +++
22    +++ exited with 127 +++
13    +++ exited with 127 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=127, si_utime=27, si_stime=9} ---
20    +++ exited with 0 +++
11    +++ exited with 127 +++