Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Also show min time

  • Loading branch information...
commit bf5a49732c64e28b1a32f95799c5bc0512339d31 1 parent b4945e0
@apauley authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 sudoku.py
View
5 sudoku.py
@@ -117,8 +117,9 @@ def time_solve(grid):
times, results, valuedicts = zip(*[time_solve(grid) for grid in grids])
N = len(grids)
if N > 1:
- print "Solved %d of %d puzzles from %s (avg %.6f secs (%d Hz), max %.6f secs)." % (
- sum(results), N, name, sum(times)/N, N/sum(times), max(times))
+ print """Solved %d of %d puzzles from %s
+\t(avg %.6f secs (%d Hz), max %.6f secs, min %.6f secs).""" % (
+ sum(results), N, name, sum(times)/N, N/sum(times), max(times), min(times))
return valuedicts
def solved(values):
Please sign in to comment.
Something went wrong with that request. Please try again.