Professional Documents
Culture Documents
Minimum Integer
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output
Given three integers lili, riri and didi, find minimum positive integer xixi such that it is divisible
by didi and it does not belong to the segment [li,ri][li,ri].
For each query print one integer: the answer to this query.