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:
@@ -168,6 +168,10 @@ class Problem19(Problem):
|
||||
elif((year % 4) == 0):
|
||||
return True
|
||||
return False
|
||||
#Reset the problem so it can be run again
|
||||
def reset(self):
|
||||
super().reset()
|
||||
self.totalSundays = 0
|
||||
|
||||
#Gets
|
||||
#Returns the total sundays that were asked for
|
||||
@@ -190,5 +194,5 @@ if __name__ == "__main__":
|
||||
|
||||
""" Results:
|
||||
There are 171 Sundays that landed on the first of the month from 1901 to 2000
|
||||
It took 724.930 milliseconds to run this algorithm
|
||||
It took an average of 386.694 milliseconds to run this problem through 100 iterations
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user