mirror of
https://bitbucket.org/Mattrixwv/projecteulerpython.git
synced 2025-12-06 17:43:58 -05:00
Updated run times and a few typos
This commit is contained in:
@@ -4,8 +4,6 @@
|
||||
#Modified: 07-18-20
|
||||
#How many routes from the top left corner to the bottom right corner are there through a 20×20 grid if you can only move right and down?
|
||||
#Unless otherwise listed, all of my non-standard imports can be gotten from my pyClasses repository at https://bitbucket.org/Mattrixwv/pyClasses
|
||||
#There must be a better way than this. This is untested. I let it run for about 14 hours and it still hadn't spit an answer out for me
|
||||
#But it is programed exactly as I programmed the C++ solution, so the eventual answer should be correct
|
||||
"""
|
||||
Copyright (C) 2020 Matthew Ellison
|
||||
|
||||
@@ -101,5 +99,6 @@ if __name__ == "__main__":
|
||||
print("It took " + problem.getTime() + " to solve this algorithm")
|
||||
|
||||
"""Results:
|
||||
|
||||
The number of paths from 1 corner of a 20 x 20 grid to the opposite corner is 137846528820
|
||||
It took 32.903 hours to solve this algorithm
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user