#abc266b. B - Modulo Number
B - Modulo Number
Score : points
问题描述
你给定一个整数 ,其取值范围在 和 (包含两端点)之间。
你需要找出一个整数 ,其取值范围在 和 (包含两端点)之间,并满足以下条件。可以证明这样的整数是唯一的。
- 能够被 整除。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
You are given an integer between and (inclusive).
Find an integer between and (inclusive) that satisfies the following condition. It can be proved that such an integer is unique.
- is a multiple of .
Constraints
- is an integer between and (inclusive).
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
Sample Input 1
998244354
Sample Output 1
1
is a multiple of , so the condition is satisfied.
Sample Input 2
-9982443534
Sample Output 2
998244349
is a multiple of , so the condition is satisfied.
update @ 2024/3/10 11:14:26