Permalink
Browse files

Thanks for the tip, @akrito

  • Loading branch information...
1 parent c834de5 commit d10c0afb639a915dddf7667758c26e9701a17a8b @coleifer committed May 8, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 problem85.py
View
2 problem85.py
@@ -22,6 +22,8 @@ def ct(m, n):
for j in range(i, upper):
x = ct(i, j)
new_diff = abs(2000000 - x)
+ if x + new_diff > 2000000 + diff:
+ break
if new_diff < diff:
diff = new_diff
bits = x, i, j, i*j

0 comments on commit d10c0af

Please sign in to comment.