Result

AC

Duration

852ms

Code [DL]

for s in open(0):print(s[2<<(s[1]!=s[2])])

stdin

267 665
121 129
377 221
244 662
344 435
389 681
693 796
137 652
288 887
369 641
496 998
877 945
624 993
292 971
197 366
299 799
344 447
577 745
691 119
552 228
283 367
726 874
911 514
325 757
199 327
736 631
678 338
146 187
394 942
259 791
513 354
636 362

stdout

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

stderr

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffdc69f1890 /* 7 vars */) = 0
11    execve("/bin/cat", ["cat", "-"], 0x55d89d718d38 /* 7 vars */) = 0
12    execve("/usr/bin/python3", ["/usr/bin/python3", "/volume/CODE"], 0x55d89d718d50 /* 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    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=12, si_uid=0, si_status=0, si_utime=2, si_stime=0} ---
10    +++ exited with 0 +++