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:
@@ -36,7 +36,8 @@
|
||||
unsigned int Problem25::NUM_DIGITS = 1000; //The number of digits to calculate up to
|
||||
|
||||
Problem25::Problem25() : Problem("What is the index of the first term in the Fibonacci sequence to contain 1000 digits?"), number(0), index(2){
|
||||
|
||||
number = 0;
|
||||
index = 0;
|
||||
}
|
||||
|
||||
void Problem25::solve(){
|
||||
@@ -117,3 +118,9 @@ uint64_t Problem25::getIndexInt() const{
|
||||
}
|
||||
return index.get_ui();
|
||||
}
|
||||
|
||||
void Problem25::reset(){
|
||||
Problem::reset();
|
||||
number = 0;
|
||||
index = 2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user