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:
@@ -33,7 +33,6 @@
|
||||
int Problem17::TOP_NUM = 1000;
|
||||
|
||||
Problem17::Problem17() : Problem("If all the numbers from 1 to 1000 inclusive were written out in words, how many letters would be used?"), letterCount(0){
|
||||
|
||||
}
|
||||
|
||||
std::string Problem17::makeWord(int num){
|
||||
@@ -210,3 +209,8 @@ uint64_t Problem17::getLetterCount() const{
|
||||
}
|
||||
return letterCount;
|
||||
}
|
||||
|
||||
void Problem17::reset(){
|
||||
Problem::reset();
|
||||
letterCount = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user