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:
@@ -75,7 +75,6 @@ std::vector<int> Problem11::grid[20] = {{ 8, 02, 22, 97, 38, 15, 00, 40, 00, 75,
|
||||
{01, 70, 54, 71, 83, 51, 54, 69, 16, 92, 33, 48, 61, 43, 52, 01, 89, 19, 67, 48}};
|
||||
|
||||
Problem11::Problem11() : Problem("What is the greatest product of four adjacent numbers in the same direction (up, down, left, right, or diagonally) in the 20x20 grid?"){
|
||||
|
||||
}
|
||||
|
||||
void Problem11::solve(){
|
||||
@@ -202,3 +201,8 @@ int Problem11::getProduct() const{
|
||||
}
|
||||
return mee::getProduct(greatestProduct);
|
||||
}
|
||||
|
||||
void Problem11::reset(){
|
||||
Problem::reset();
|
||||
greatestProduct.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user