You are viewing a single comment's thread. Return to all comments →
did essentially the same but summed a generator with bool values converted to ints
i,j,k = [int(x) for x in input().split()] print(sum((int(abs(day - int(str(day)[::-1])) % k == 0) for day in range(i,j+1))))
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 →
did essentially the same but summed a generator with bool values converted to ints