by@shell_mug
WA
862ms
while True: a,b=map(int,input().split()) if a%111!=0 and a%100%11==0:print(a%10) elif b//10%11==0:print(b//100) elif a%10==b//100:print(a%10) else:print(1)
764 663 113 326 732 315 961 866 711 889 854 172 377 776 748 443 619 191 455 131 977 473 477 283 932 852 195 655 527 218 566 559 851 224 183 937 598 895 513 133 154 455 287 386 315 498 996 672 588 841 188 485 995 551 566 651 548 558 966 663 373 446 996 668
6 3 1 1 1 1 7 4 1 5 7 7 1 1 1 6 2 1 8 1 4 1 1 6 8 8 5 6 5 6 4 6
Traceback (most recent call last): File "/volume/CODE", line 2, in <module> a,b=map(int,input().split()) EOFError: EOF when reading a line
10 execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffc0f0faff0 /* 7 vars */) = 0 11 execve("/bin/cat", ["cat", "-"], 0x55d99692ed38 /* 7 vars */) = 0 12 execve("/usr/bin/python3", ["/usr/bin/python3", "/volume/CODE"], 0x55d99692ed50 /* 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 1 +++ 10 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=12, si_uid=0, si_status=1, si_utime=1, si_stime=0} --- 10 +++ exited with 1 +++