题解 | 小红的正整数构造
小红的正整数构造
https://www.nowcoder.com/practice/7aa37cbc28034fe5af562ec7e44d1e76
import sys
l,r,x = map(int, input().split())
for i in range(l, r + 1):
if i % x == 0:
print(i)
break
elif i % x != 0 and i == r:
print(-1)

