Все задачи на 5.10.17 13:00
This commit is contained in:
8
uts/uts_17_aut_py/1/D.py
Normal file
8
uts/uts_17_aut_py/1/D.py
Normal file
@@ -0,0 +1,8 @@
|
||||
l, r, d = list(map(int, input().split()))
|
||||
cel = l // d + 1
|
||||
cur = d * cel
|
||||
if l % d == 0:
|
||||
print(l, end=' ')
|
||||
while cur <= r:
|
||||
print(cur, end=' ')
|
||||
cur += d
|
||||
Reference in New Issue
Block a user