Result

WA

Duration

876ms

Code [DL]

set print "-"
i=1
while(i){y=word(ARG1,i+1)
print y/10%11?word(ARG1,i)%10:y/99
i=i+2}

stdin

923 927
178 766
433 135
664 348
161 422
869 492
266 739
253 557
884 256
577 774
466 453
661 164
881 861
544 453
992 226
196 963
376 618
395 159
846 557
561 446
811 663
399 818
494 994
842 226
638 812
277 337
611 123
458 851
173 733
422 927
351 654
366 661

stdout

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

stderr

"/volume/CODE" line 4: Non-numeric string found where a numeric expression was expected

strace

11    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7fffe09a4170 /* 7 vars */) = 0
12    execve("/bin/cat", ["cat", "-"], 0x560c0efffcf8 /* 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/gnuplot", ["/usr/bin/gnuplot", "-c", "/volume/CODE", "923 927\n178 766\n433 135\n664 348\n"...], 0x560c10fd5290 /* 7 vars */) = 0
13    +++ exited with 1 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=1, si_utime=0, si_stime=1} ---
11    +++ exited with 1 +++