You are viewing a single comment's thread. Return to all comments →
Nice solution! Here is my not so elegant solution, however maybe easier to understand for beginners..
i,j,k = [int(x) for x in input().split()] count = 0 for x in range(i,j+1): if (x - int(str(x)[::-1])) % k == 0: count += 1 print(count)
Beautiful Days at the Movies
You are viewing a single comment's thread. Return to all comments →
Nice solution! Here is my not so elegant solution, however maybe easier to understand for beginners..