Result

AC

Duration

1221ms

Code [DL]

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

stdin

899 667
435 527
512 119
533 456
147 449
188 856
499 997
467 656
375 756
188 385
864 546
634 771
834 736
263 368
945 462
915 983
688 686
247 472
348 663
955 565
657 771
877 776
654 435
456 669
488 367
594 494
585 655
644 773
989 742
219 695
144 122
348 546

stdout

95134896785773498465774684647645

stderr

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7fff98e6aef0 /* 7 vars */) = 0
11    execve("/bin/cat", ["cat", "-"], 0x55b2d43c4d38 /* 7 vars */ <unfinished ...>
12    execve("/usr/bin/escript", ["/usr/bin/escript", "/volume/CODE"], 0x55b2d43c4d50 /* 7 vars */) = 0
11    <... execve resumed>)             = 0
12    execve("/usr/bin/erl", ["/usr/bin/erl", "+B", "-boot", "no_dot_erlang", "-noshell", "-run", "escript", "start", "-extra", "/volume/CODE"], 0x5628b2e665e0 /* 8 vars */ <unfinished ...>
11    +++ exited with 0 +++
12    <... execve resumed>)             = 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} ---
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} ---
15    execve("/bin/sed", ["sed", "s/.*\\///"], 0x55aadd7b0168 /* 8 vars */) = 0
15    +++ exited with 0 +++
13    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=15, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
13    +++ exited with 0 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
12    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"], 0x55aadd7b0170 /* 12 vars */) = 0
12    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"], 0x7ffd39572450 /* 12 vars */) = 0
19    execve("/usr/lib/erlang/erts-10.6.4/bin/erl_child_setup", ["erl_child_setup", "1024"], 0x7fff07a11cf0 /* 12 vars */) = 0
36    execve("/bin/sh", ["sh", "-c", "exec inet_gethost 4 "], 0x7f151dbc8660 /* 12 vars */) = 0
36    execve("/usr/lib/erlang/erts-10.6.4/bin/inet_gethost", ["inet_gethost", "4"], 0x55797d6e6cf8 /* 12 vars */) = 0
36    +++ exited with 0 +++
19    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=36, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
37    --- SIGUSR1 {si_signo=SIGUSR1, si_code=SI_USER, si_pid=36, si_uid=0} ---
37    +++ killed by SIGUSR1 +++
18    +++ exited with 0 +++
32    +++ exited with 0 +++
29    +++ exited with 0 +++
26    +++ exited with 0 +++
24    +++ exited with 0 +++
21    +++ exited with 0 +++
20    +++ exited with 0 +++
35    +++ exited with 0 +++
31    +++ exited with 0 +++
28    +++ exited with 0 +++
25    +++ exited with 0 +++
22    +++ exited with 0 +++
16    +++ exited with 0 +++
23    +++ exited with 0 +++
17    +++ exited with 0 +++
27    +++ exited with 0 +++
30    +++ exited with 0 +++
33    +++ exited with 0 +++
34    +++ exited with 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=22, si_stime=7} ---
19    +++ exited with 0 +++
10    +++ exited with 0 +++