mirror of
https://bitbucket.org/Mattrixwv/projecteulercpp.git
synced 2025-12-07 01:23:57 -05:00
Added a benchmark tool
This commit is contained in:
@@ -33,7 +33,6 @@
|
||||
uint64_t Problem12::GOAL_DIVISORS = 500;
|
||||
|
||||
Problem12::Problem12() : Problem("What is the value of the first triangle number to have over five hundred divisors?"), sum(1), counter(2){
|
||||
|
||||
}
|
||||
|
||||
void Problem12::solve(){
|
||||
@@ -109,3 +108,10 @@ size_t Problem12::getNumberOfDivisors() const{
|
||||
}
|
||||
return divisors.size();
|
||||
}
|
||||
|
||||
void Problem12::reset(){
|
||||
Problem::reset();
|
||||
divisors.clear();
|
||||
sum = 1;
|
||||
counter = 2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user