Hedwig's Library

This documentation is automatically generated by online-judge-tools/verification-helper

View on GitHub

:warning: other_algorithm/grid_utils.cpp

Code

#pragma once
#include <bits/stdc++.h>
using namespace std;

const int dy[8] = {-1, 0, 1, 0, -1, -1, 1, 1};
const int dx[8] = {0, 1, 0, -1, -1, 1, -1, 1};
bool IN(int y, int x, int H, int W) { return (0 <= y) && (y < H) && (0 <= x) && (x < W); }
#line 2 "other_algorithm/grid_utils.cpp"
#include <bits/stdc++.h>
using namespace std;

const int dy[8] = {-1, 0, 1, 0, -1, -1, 1, 1};
const int dx[8] = {0, 1, 0, -1, -1, 1, -1, 1};
bool IN(int y, int x, int H, int W) { return (0 <= y) && (y < H) && (0 <= x) && (x < W); }
Back to top page