Added a benchmark tool

This commit is contained in:
2020-07-08 20:38:37 -04:00
parent a7d960c3b1
commit 766af92f1a
68 changed files with 546 additions and 134 deletions

View File

@@ -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;
}