Result

WA

Duration

980ms

Code [DL]

1 read*,i,j
l=mod(i,10)
print*,min(mod(i-i/99,11),1)*(j/99-l)+l
goto1;end

stdin

866 264
264 527
833 339
262 267
952 513
922 963
133 886
971 216
727 243
345 662
396 954
781 788
694 998
194 793
399 695
481 116
966 645
138 331
633 325
411 538
958 686
699 886
352 281
989 998
446 331
944 445
217 176
418 891
417 712
327 129
335 357
689 763

stdout

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

stderr

At line 1 of file /tmp/code.f08 (unit = 5, file = 'stdin')
Fortran runtime error: End of file

Error termination. Backtrace:
#0  0x7f4fe65ee7f1 in ???
#1  0x7f4fe65ef10c in ???
#2  0x7f4fe65efa6c in ???
#3  0x7f4fe672c6c4 in ???
#4  0x7f4fe6727af5 in ???
#5  0x7f4fe67282d3 in ???
#6  0x7f4fe672bd57 in ???
#7  0x555f2410d27b in ???
#8  0x555f2410d41e in ???
#9  0x7f4fe67961f4 in ???

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffde1989f10 /* 7 vars */) = 0
11    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x561e370a7d18 /* 7 vars */) = 0
11    +++ exited with 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} ---
12    execve("/bin/ln", ["ln", "-sf", "/volume/CODE", "/tmp/code.f08"], 0x561e370a7d38 /* 7 vars */) = 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=0, si_stime=0} ---
13    execve("/usr/bin/gfortran", ["gfortran", "-std=f2018", "/tmp/code.f08", "-o", "/tmp/code"], 0x561e383ec028 /* 7 vars */) = 0
14    execve("/usr/libexec/gcc/x86_64-alpine-linux-musl/9.3.0/f951", ["/usr/libexec/gcc/x86_64-alpine-l"..., "/tmp/code.f08", "-quiet", "-dumpbase", "code.f08", "-mtune=generic", "-march=x86-64", "-auxbase", "code", "-std=f2018", "-fintrinsic-modules-path", "/usr/lib/gcc/x86_64-alpine-linux"..., "-o", "/tmp/ccAhCLKF.s"], 0xcdc8e0 /* 10 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=1, si_stime=0} ---
15    execve("/usr/lib/gcc/x86_64-alpine-linux-musl/9.3.0/../../../../x86_64-alpine-linux-musl/bin/as", ["/usr/lib/gcc/x86_64-alpine-linux"..., "--64", "-o", "/tmp/cckhhGoI.o", "/tmp/ccAhCLKF.s"], 0xcdc8e0 /* 10 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} ---
16    execve("/usr/libexec/gcc/x86_64-alpine-linux-musl/9.3.0/collect2", ["/usr/libexec/gcc/x86_64-alpine-l"..., "-plugin", "/usr/libexec/gcc/x86_64-alpine-l"..., "-plugin-opt=/usr/libexec/gcc/x86"..., "-plugin-opt=-fresolution=/tmp/cc"..., "-plugin-opt=-pass-through=-lgcc_"..., "-plugin-opt=-pass-through=-lgcc", "-plugin-opt=-pass-through=-lquad"..., "-plugin-opt=-pass-through=-lm", "-plugin-opt=-pass-through=-lgcc_"..., "-plugin-opt=-pass-through=-lgcc", "-plugin-opt=-pass-through=-lc", "-plugin-opt=-pass-through=-lgcc_"..., "-plugin-opt=-pass-through=-lgcc", "--eh-frame-hdr", "--hash-style=gnu", "-m", "elf_x86_64", "--as-needed", "-dynamic-linker", "/lib/ld-musl-x86_64.so.1", "-pie", "-z", "relro", "-z", "now", "-o", "/tmp/code", "/usr/lib/gcc/x86_64-alpine-linux"..., "/usr/lib/gcc/x86_64-alpine-linux"..., "/usr/lib/gcc/x86_64-alpine-linux"..., "-L/usr/lib/gcc/x86_64-alpine-lin"..., ...], 0xcdc8e0 /* 12 vars */) = 0
17    execve("/usr/lib/gcc/x86_64-alpine-linux-musl/9.3.0/../../../../x86_64-alpine-linux-musl/bin/ld", ["/usr/lib/gcc/x86_64-alpine-linux"..., "-plugin", "/usr/libexec/gcc/x86_64-alpine-l"..., "-plugin-opt=/usr/libexec/gcc/x86"..., "-plugin-opt=-fresolution=/tmp/cc"..., "-plugin-opt=-pass-through=-lgcc_"..., "-plugin-opt=-pass-through=-lgcc", "-plugin-opt=-pass-through=-lquad"..., "-plugin-opt=-pass-through=-lm", "-plugin-opt=-pass-through=-lgcc_"..., "-plugin-opt=-pass-through=-lgcc", "-plugin-opt=-pass-through=-lc", "-plugin-opt=-pass-through=-lgcc_"..., "-plugin-opt=-pass-through=-lgcc", "--eh-frame-hdr", "--hash-style=gnu", "-m", "elf_x86_64", "--as-needed", "-dynamic-linker", "/lib/ld-musl-x86_64.so.1", "-pie", "-z", "relro", "-z", "now", "-o", "/tmp/code", "/usr/lib/gcc/x86_64-alpine-linux"..., "/usr/lib/gcc/x86_64-alpine-linux"..., "/usr/lib/gcc/x86_64-alpine-linux"..., "-L/usr/lib/gcc/x86_64-alpine-lin"..., ...], 0x7fff96b4eb88 /* 12 vars */) = 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=2} ---
16    +++ exited with 0 +++
13    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=16, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
13    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
18    execve("/bin/cat", ["cat", "-"], 0x561e370a7d08 /* 7 vars */ <unfinished ...>
19    execve("/tmp/code", ["/tmp/code"], 0x561e370a7cf0 /* 7 vars */ <unfinished ...>
18    <... execve resumed>)             = 0
19    <... execve resumed>)             = 0
18    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=18, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
19    +++ exited with 2 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=19, si_uid=0, si_status=2, si_utime=0, si_stime=0} ---
20    execve("/bin/rm", ["rm", "/tmp/code.f08", "/tmp/code"], 0x561e370a7cf0 /* 7 vars */) = 0
20    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=20, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
10    +++ exited with 0 +++