# 코딩 문제 관련/파이썬
[HackerRank-python] Beautiful Days at the Movies
Hwiyong Jo
2022. 7. 25. 22:32
def beautifulDays(i, j, k):
# Write your code here
cnt = 0
for n in range(i, j + 1):
rn = int(str(n)[::-1])
diff = (n - rn) % k
if not diff:
cnt += 1
return cnt