ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1327. Fuses

WA 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.