Result

WA

Duration

961ms

Code [DL]

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

stdin

877 124
437 873
184 866
416 865
663 663
127 455
544 338
741 396
749 598
299 198
681 373
926 264
564 673
377 733
651 156
955 779
926 337
422 129
693 693
377 778
426 329
955 554
533 365
793 324
614 227
318 866
775 756
724 423
449 993
462 224
781 882
277 616

stdout

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

stderr

strace

11    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffd679eff10 /* 7 vars */) = 0
13    execve("/usr/bin/lua5.3", ["/usr/bin/lua5.3", "/volume/CODE"], 0x560cab3edd40 /* 7 vars */ <unfinished ...>
12    execve("/bin/cat", ["cat", "-"], 0x560cab3edd30 /* 7 vars */ <unfinished ...>
13    <... execve resumed>)             = 0
12    <... execve resumed>)             = 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    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
11    +++ exited with 0 +++