Result

WA

Duration

744ms

Code [DL]

for x in io.lines()do print(x:match("(%d) ?%1")or 1)end

stdin

691 884
388 381
659 446
643 341
512 818
988 586
755 587
166 665
172 789
924 242
257 551
734 657
414 845
489 995
587 738
741 568
433 317
819 814
136 762
497 794
955 865
236 871
166 814
766 551
391 963
993 994
588 887
155 336
667 743
516 664
736 364
553 736

stdout

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

stderr

strace

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