题解 | 小红的正整数构造
小红的正整数构造
https://www.nowcoder.com/practice/7aa37cbc28034fe5af562ec7e44d1e76
l,r,x=map(int,input().split())
s=[i for i in range(l,r+1)]
found=False
for j in s:
if int(j)%x==0:
print(j)
found=True
break
if not found:
print(-1)

