r, c = input().split() r, c = int(r), int(c) if 2 * r - c + 1 < 0: r, c = c, r print(c * (c + 1) * (c + 2) * (2 * r - c + 1) // 12, 0)
rt,不知道哪里错了。