Result

WA

Duration

724ms

Code [DL]

a=io.read'*a':gsub("[%d ]+(%d)[%1 ][%d ]+","%1")print(a)

stdin

399 491
166 245
133 219
624 739
733 119
467 997
188 841
545 657
355 554
533 336
412 229
418 189
422 237
443 952
717 772
433 447
545 591
488 983
589 181
353 535
185 883
294 964
823 227
746 612
128 921
982 723
914 418
516 774
758 487
579 974
854 524
719 969

stdout

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

stderr

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffcf96a2d10 /* 7 vars */) = 0
11    execve("/bin/cat", ["cat", "-"], 0x55737aa81d30 /* 7 vars */) = 0
12    execve("/usr/bin/lua5.3", ["/usr/bin/lua5.3", "/volume/CODE"], 0x55737aa81d40 /* 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 +++