Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 061e659cfb
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (12 sloc) 0.442 kB
num = denom = 1
for i in range(10, 100):
for j in range(i + 1, 100):
i, j = float(i), float(j)
if i % 10 != 0 and j % 10 != 0:
num_lt, num_rt = divmod(i, 10)
denom_lt, denom_rt = divmod(j, 10)
if i / j == num_lt / denom_rt and num_rt == denom_lt:
print '%d * %d = %d * %d' % (i, j, num_lt, denom_rt)
num *= i
denom *= j
print denom / num
Jump to Line
Something went wrong with that request. Please try again.