# TODO def compute(a, b): sum = 0 for i in range(a, b+1): sum += i return sum a = eval(input()) b = eval(input()) print(compute(a, b))
Category: Python
全新的繁體中文 WordPress 網站
# TODO def compute(a, b): sum = 0 for i in range(a, b+1): sum += i return sum a = eval(input()) b = eval(input()) print(compute(a, b))