|
|
back to boardWA 5 Posted by Akashi 13 Sep 2022 21:57 a = int(input()) b = int(input()) if a %2==1 and b%2==1: print(int((b-a)/2+1)) else: print((b-a)//2) Why WA?? Re: WA 5 Posted by xinxer 9 Jan 2024 18:04 What if a = 2 and b = 3? The answer will be 1 but your code will give 0. Now fix it. |
|
|