Result

WA

Duration

755ms

Code [DL]

FS=A;$0=$2~$3?$2%10:$3

stdin

923 234
172 218
266 897
488 733
414 462
255 997
411 228
556 578
476 677
792 228
677 379
517 788
722 224
557 558
223 821
736 965
479 991
746 164
929 298
957 758
755 538
976 883
565 642
286 598
677 472
244 477
851 375
961 667
868 469
688 884
564 837
948 229

stdout

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

stderr

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffc8b4892f0 /* 7 vars */) = 0
11    execve("/bin/cat", ["cat", "-"], 0x55ebefbbbd58 /* 7 vars */) = 0
12    execve("/usr/bin/gawk", ["/usr/bin/gawk", "-f", "/volume/CODE"], 0x55ebf0d23028 /* 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    +++ 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} ---
10    +++ exited with 0 +++