You are viewing a single comment's thread. Return to all comments →
this :)
i, j, k = [int(x) for x in input().split()] beautifulDays = [1 for day in range(i, j+1) if (day - int(str(day)[::-1])) % k == 0] print(sum(beautifulDays))
Seems like cookies are disabled on this browser, please enable them to open this website
Beautiful Days at the Movies
You are viewing a single comment's thread. Return to all comments →
this :)