by@shell_mug
WA
795ms
while True: a,b=map(int,input().split()) if a%111!=0 and a%100==11:print(a%10) elif b//10%11==0:print(b//100) elif a%10==b//100:print(a%10) else:print(1)
755 517 978 744 455 452 885 595 855 356 477 489 689 986 846 468 211 556 943 438 669 774 155 559 861 221 642 386 653 551 937 221 992 997 633 586 741 149 199 948 139 897 749 995 945 264 134 418 395 961 141 749 799 112 142 228 156 457 266 662 298 368 131 414
5 1 1 5 1 1 9 1 1 1 7 5 2 1 5 2 9 1 1 9 1 9 1 4 1 1 1 2 1 6 1 1
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"], 0x7ffd487c3350 /* 7 vars */) = 0 11 execve("/bin/cat", ["cat", "-"], 0x5632cc96fd38 /* 7 vars */) = 0 12 execve("/usr/bin/python3", ["/usr/bin/python3", "/volume/CODE"], 0x5632cc96fd50 /* 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 +++