Skip to content

Commit

Permalink
Update mmsnippets.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
ebicochineal committed Apr 11, 2024
1 parent a3d0f99 commit 1c44d9b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions marathon_contest_template_v3/mmsnippets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ struct E512Grid {
}
int getIndex (int x, int y) { return y*this->W+x; }
int getValue (int x, int y) { return this->grid[y*this->W+x]; }
void setValue (int x, int y, int value) { this->grid[y*this->W+x] = value; }
bool inSide (int x, int y) { return (x >= 0 && x < this->W && y >= 0 && y < this->H); }
void input () {
for (int y = 0; y < this->H; ++y) {
Expand Down

0 comments on commit 1c44d9b

Please sign in to comment.