Result

AC

Duration

1325ms

Code [DL]

-export([main/1]).
f() ->{ok,[A,B]}=io:fread("","~d~d"),io:format("~B",[case 9>B rem 110of true->B div 100;false->A rem 10end]).
main(_)->[f()||_<-lists:seq(1,32)].

stdin

428 972
583 836
646 886
122 129
565 563
219 913
741 158
699 533
612 612
654 553
367 529
168 698
223 638
822 321
377 764
282 149
571 931
447 771
188 887
877 688
919 979
899 559
244 881
786 835
864 644
115 553
393 997
944 427
942 342
822 223
114 226
316 264

stdout

83825919257832721787998645942226

stderr

strace

13    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffecc137490 /* 7 vars */) = 0
14    execve("/bin/cat", ["cat", "-"], 0x55fe3c2a8d38 /* 7 vars */ <unfinished ...>
15    execve("/usr/bin/escript", ["/usr/bin/escript", "/volume/CODE"], 0x55fe3c2a8d50 /* 7 vars */ <unfinished ...>
14    <... execve resumed>)             = 0
15    <... execve resumed>)             = 0
15    execve("/usr/bin/erl", ["/usr/bin/erl", "+B", "-boot", "no_dot_erlang", "-noshell", "-run", "escript", "start", "-extra", "/volume/CODE"], 0x55e09faa75e0 /* 8 vars */) = 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} ---
17    +++ exited with 0 +++
16    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=17, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
18    execve("/bin/sed", ["sed", "s/.*\\///"], 0x56322d4c6168 /* 8 vars */) = 0
18    +++ exited with 0 +++
16    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=18, si_uid=0, si_status=0, si_utime=0, si_stime=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    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"], 0x56322d4c6170 /* 12 vars */) = 0
15    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"], 0x7ffdee675670 /* 12 vars */) = 0
22    execve("/usr/lib/erlang/erts-10.6.4/bin/erl_child_setup", ["erl_child_setup", "1024"], 0x7fff0efd1e40 /* 12 vars */) = 0
39    execve("/bin/sh", ["sh", "-c", "exec inet_gethost 4 "], 0x7f00c850f660 /* 12 vars */) = 0
39    execve("/usr/lib/erlang/erts-10.6.4/bin/inet_gethost", ["inet_gethost", "4"], 0x55e31dc69cf8 /* 12 vars */) = 0
39    +++ exited with 0 +++
22    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=39, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
40    --- SIGUSR1 {si_signo=SIGUSR1, si_code=SI_USER, si_pid=39, si_uid=0} ---
40    +++ killed by SIGUSR1 +++
21    +++ exited with 0 +++
38    +++ exited with 0 +++
37    +++ exited with 0 +++
36    +++ exited with 0 +++
35    +++ exited with 0 +++
34    +++ exited with 0 +++
33    +++ exited with 0 +++
32    +++ exited with 0 +++
31    +++ exited with 0 +++
30    +++ exited with 0 +++
29    +++ exited with 0 +++
28    +++ exited with 0 +++
27    +++ exited with 0 +++
26    +++ exited with 0 +++
25    +++ exited with 0 +++
24    +++ exited with 0 +++
23    +++ exited with 0 +++
20    +++ exited with 0 +++
19    +++ exited with 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=30, si_stime=6} ---
22    +++ exited with 0 +++
13    +++ exited with 0 +++