#abc253d. D - FizzBuzz Sum Hard
D - FizzBuzz Sum Hard
Score : points
问题描述
求在 到 (包含)之间,既不是 的倍数也不是 的倍数的所有整数之和。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
Find the sum of integers between and (inclusive) that are not multiples of or .
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
Sample Input 1
10 3 5
Sample Output 1
22
The integers between and (inclusive) that are not multiples of or are , and , whose sum is .
Sample Input 2
1000000000 314 159
Sample Output 2
495273003954006262
update @ 2024/3/10 10:47:35