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:
@@ -36,12 +36,14 @@ class Problem28 : public Problem{
|
||||
private:
|
||||
std::vector<std::vector<int>> grid; //Holds the grid that we will be filling and searching
|
||||
uint64_t sumOfDiagonals; //Holds the sum of the diagonals of the grid
|
||||
void setupGrid(); //Sets up the grid
|
||||
void setupGrid(); //This sets up the grid to hold the correct number of variables
|
||||
void createGrid(); //Puts all of the numbers in the grid up the grid
|
||||
void findSum(); //Finds the sum of the diagonals in the grid
|
||||
public:
|
||||
Problem28();
|
||||
virtual void solve();
|
||||
virtual std::string getString() const;
|
||||
virtual void reset();
|
||||
std::vector<std::vector<int>> getGrid() const; //Returns the grid
|
||||
uint64_t getSum() const; //Returns the sum of the diagonals
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user