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,6 @@ int Problem16::NUM_TO_POWER = 2; //The number that is going to be raised to a po
|
||||
int Problem16::POWER = 1000; //The power that the number is going to be raised to
|
||||
|
||||
Problem16::Problem16() : Problem("What is the sum of the digits of the number 2^1000?"), num(0), sumOfElements(0){
|
||||
|
||||
}
|
||||
|
||||
void Problem16::solve(){
|
||||
@@ -95,3 +94,9 @@ int Problem16::getSum() const{
|
||||
}
|
||||
return sumOfElements;
|
||||
}
|
||||
|
||||
void Problem16::reset(){
|
||||
Problem::reset();
|
||||
num = 0;
|
||||
sumOfElements = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user