Result

AC

Duration

1184ms

Code [DL]

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

stdin

799 994
869 269
561 184
488 815
272 661
744 475
616 163
489 198
722 445
172 278
655 113
911 963
429 728
288 885
845 442
382 235
243 255
911 969
739 716
875 556
335 416
482 774
443 422
744 246
748 843
616 112
759 992
494 946
433 139
524 253
135 853
663 196

stdout

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

stderr

strace

11    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffca5fd9970 /* 7 vars */) = 0
12    execve("/bin/cat", ["cat", "-"], 0x55c512bb6d38 /* 7 vars */) = 0
13    execve("/usr/bin/escript", ["/usr/bin/escript", "/volume/CODE"], 0x55c512bb6d50 /* 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"], 0x55c30cc7d5e0 /* 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/.*\\///"], 0x5581510b5168 /* 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"], 0x5581510b5170 /* 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"], 0x7ffe5e2cf190 /* 12 vars */) = 0
20    execve("/usr/lib/erlang/erts-10.6.4/bin/erl_child_setup", ["erl_child_setup", "1024"], 0x7ffc6c0e2e90 /* 12 vars */) = 0
37    execve("/bin/sh", ["sh", "-c", "exec inet_gethost 4 "], 0x7fa1c43c6660 /* 12 vars */) = 0
37    execve("/usr/lib/erlang/erts-10.6.4/bin/inet_gethost", ["inet_gethost", "4"], 0x55e316bc2cf8 /* 12 vars */) = 0
37    +++ exited with 0 +++
38    --- SIGUSR1 {si_signo=SIGUSR1, si_code=SI_USER, si_pid=37, si_uid=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    +++ killed by SIGUSR1 +++
19    +++ 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 +++
21    +++ exited with 0 +++
18    +++ exited with 0 +++
17    +++ exited with 0 +++
22    +++ 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=20, si_stime=12} ---
20    +++ exited with 0 +++
11    +++ exited with 0 +++