This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
import sys
input_ = sys.stdin.readline
def minput(): return map(int, input_().split())
a, b = minput()
x = a
a = (a + a % 2) // 2
a += a == 1
b = (b - b % 2) // 2
print(b * (b + 1) - a * (a - 1) + 5 * (x == 5))
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |