Result

AC

Duration

1130ms

Code [DL]

-export([main/1]).
f()->{_,[_,B,C,E,_]}=io:fread("","~c~c~c ~c~s"),io:format(case B==C of true->B;false->E end).
main(_)->[f()||_<-lists:seq(1,32)].

stdin

848 944
176 963
377 779
788 789
937 334
935 286
622 229
533 395
787 871
518 461
772 618
547 145
247 776
448 662
837 334
544 332
863 936
997 974
171 172
352 449
427 615
944 453
936 652
586 623
335 535
877 668
466 218
542 418
866 265
239 996
588 596
669 622

stdout

99783223846176349914646657646986

stderr

strace

11    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffc93e570d0 /* 7 vars */) = 0
12    execve("/bin/cat", ["cat", "-"], 0x5570059b9d38 /* 7 vars */) = 0
13    execve("/usr/bin/escript", ["/usr/bin/escript", "/volume/CODE"], 0x5570059b9d50 /* 7 vars */) = 0
12    +++ exited with 0 +++
13    execve("/usr/bin/erl", ["/usr/bin/erl", "+B", "-boot", "no_dot_erlang", "-noshell", "-run", "escript", "start", "-extra", "/volume/CODE"], 0x55a424c7b5e0 /* 8 vars */) = 0
16    execve("/bin/sed", ["sed", "s/.*\\///"], 0x561954228168 /* 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    +++ 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"], 0x561954228170 /* 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"], 0x7ffdff0e68b0 /* 12 vars */) = 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} ---
20    execve("/usr/lib/erlang/erts-10.6.4/bin/erl_child_setup", ["erl_child_setup", "1024"], 0x7ffe432707b0 /* 12 vars */) = 0
37    execve("/bin/sh", ["sh", "-c", "exec inet_gethost 4 "], 0x7f6bbae75660 /* 12 vars */) = 0
37    execve("/usr/lib/erlang/erts-10.6.4/bin/inet_gethost", ["inet_gethost", "4"], 0x5636d903acf8 /* 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 +++
34    +++ exited with 0 +++
32    +++ exited with 0 +++
31    +++ exited with 0 +++
22    +++ exited with 0 +++
21    +++ exited with 0 +++
17    +++ exited with 0 +++
36    +++ exited with 0 +++
35    +++ exited with 0 +++
29    +++ exited with 0 +++
27    +++ exited with 0 +++
25    +++ exited with 0 +++
23    +++ exited with 0 +++
18    +++ exited with 0 +++
26    +++ exited with 0 +++
24    +++ exited with 0 +++
28    +++ exited with 0 +++
30    +++ exited with 0 +++
33    +++ exited with 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=15, si_stime=9} ---
20    +++ exited with 0 +++
11    +++ exited with 0 +++