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:
@@ -31,7 +31,6 @@
|
||||
|
||||
|
||||
Problem9::Problem9() : Problem("There exists exactly one Pythagorean triplet for which a + b + c = 1000. Find the product of abc."), a(1), b(0), c(0), found(false){
|
||||
|
||||
}
|
||||
|
||||
void Problem9::solve(){
|
||||
@@ -117,3 +116,11 @@ int Problem9::getProduct() const{
|
||||
}
|
||||
return a * b * (int)c;
|
||||
}
|
||||
|
||||
void Problem9::reset(){
|
||||
Problem::reset();
|
||||
a = 1;
|
||||
b = 0;
|
||||
c = 0;
|
||||
found = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user