atcoder#ARC110A. [ARC110A] Redundant Redundancy
[ARC110A] Redundant Redundancy
Score : points
Problem Statement
We have an integer .
Print an integer between and (inclusive) such that, for every integer between and (inclusive), the remainder when is divided by is .
Under the constraints of this problem, there is always at least one such integer .
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print an integer between and (inclusive) such that, for every integer between and (inclusive), the remainder when is divided by is .
If there are multiple such integers, any of them will be accepted.
3
7
The remainder when is divided by is , and the remainder when is divided by is , too.
is an integer between and , so this is a desirable output.
10
39916801