Sunday Times Teaser 2641 – Exchange Rate
by Robin Nayler
In preparing for a holiday I exchanged a three digit number of Pounds for Tezarland dollars, receiving a whole number of dollars for each Pound and paying an additional 12 Pound fee.
The number of dollars I received had the same digits as the Pounds I paid but in reverse order.
How many dollars did I receive?
One Comment
Leave one →
-
brian gladman permalink123456for p in range(100, 1000):d = int(str(p)[::-1])if not d % (p - 12):print('I paid {:d} Pounds for {:d} Tezar dollars'.format(p, d))