Skip to content

Commit

Permalink
change: numeric_limits
Browse files Browse the repository at this point in the history
  • Loading branch information
kogetsu7 committed Jan 5, 2025
1 parent f662514 commit 7c86d6b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions template/template.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ using ld = long double;
template <class T>
using min_priority_queue = priority_queue<T, vector<T>, greater<T>>;

constexpr int INF32 = INT_MAX / 2;
constexpr ll INF64 = 1LL << 60;
template <class T> constexpr T INF = numeric_limits<T>::max() / 2;
constexpr array<int, 4> DY4 = {0, -1, 0, 1};
constexpr array<int, 4> DX4 = {1, 0, -1, 0};
constexpr array<int, 8> DY8 = {0, -1, -1, -1, 0, 1, 1, 1};
Expand Down

0 comments on commit 7c86d6b

Please sign in to comment.