mirror of
https://bitbucket.org/Mattrixwv/projecteulercpp.git
synced 2025-12-06 17:13:59 -05:00
Added a benchmark tool
This commit is contained in:
@@ -32,7 +32,8 @@
|
||||
unsigned int Problem26::TOP_NUMBER = 999;
|
||||
|
||||
Problem26::Problem26() : Problem("Find the value of d < 1000 for which 1/d contains the longest recurring cycle in its decimal fraction part."), longestCycle(0), longestNumber(1){
|
||||
|
||||
longestCycle = 0;
|
||||
longestNumber = 0;
|
||||
}
|
||||
|
||||
void Problem26::solve(){
|
||||
@@ -117,3 +118,9 @@ unsigned int Problem26::getLongestNumber() const{
|
||||
}
|
||||
return longestNumber;
|
||||
}
|
||||
|
||||
void Problem26::reset(){
|
||||
Problem::reset();
|
||||
longestCycle = 0;
|
||||
longestNumber = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user