Result

WA

Duration

801ms

Code [DL]

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

stdin

782 483
679 229
339 993
783 883
547 449
982 728
834 217
864 648
767 346
773 672
811 885
344 671
544 668
144 393
377 795
383 624
844 458
697 791
622 229
362 336
395 958
664 441
548 498
951 523
494 542
166 369
418 891
198 873
656 577
899 994
774 478
488 189

stdout

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

stderr

strace

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