Result

WA

Duration

784ms

Code [DL]

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

stdin

344 442
433 159
748 486
197 981
221 729
158 946
288 335
599 598
421 922
519 887
271 635
157 124
694 447
195 655
454 544
642 247
696 698
733 695
281 312
358 986
574 772
355 559
411 126
299 881
381 885
599 974
159 993
688 281
316 771
882 238
853 327
526 299

stdout

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

stderr

strace

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