diff --git a/solutions/beecrowd/1099/1099.py b/solutions/beecrowd/1099/1099.py new file mode 100644 index 00000000..95cd06a6 --- /dev/null +++ b/solutions/beecrowd/1099/1099.py @@ -0,0 +1,15 @@ +n = int(input()) + + +for _ in range(n): + x, y = map(int, input().split()) + x, y = min(x, y), max(x, y) + + x += 1 + if x % 2 == 0: + x += 1 + + s = 0 + for odd_number in range(x, y, 2): + s += odd_number + print(s)