Result

WA

Duration

928ms

Code [DL]

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

stdin

724 645
511 224
299 994
896 423
161 663
191 116
399 971
266 285
749 494
513 314
689 493
298 454
899 496
842 968
398 669
178 442
881 658
829 217
531 336
492 277
838 812
293 956
877 393
124 329
611 886
445 644
788 281
288 884
544 432
869 964
373 335
951 516

stdout

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

stderr

strace

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