diff --git a/Template/template.cpp b/Template/template.cpp index 48856fd..6553f13 100644 --- a/Template/template.cpp +++ b/Template/template.cpp @@ -14,6 +14,9 @@ #define all(x) begin(x), end(x) #define tr(a, x) for (auto& a : x) #define mem(a, b) memset(a, (b), sizeof(a)) +#define pc __builtin_popcount +#define clz __builtin_clz +#define ctz __builtin_ctz using namespace std; using namespace __gnu_pbds; using namespace __gnu_cxx; using str = string; using ll = long long; using ld = long double; using cd = complex; using ii = pair; using pl = pair; using pd = pair; diff --git a/Template/usaco.cpp b/Template/usaco.cpp index 6f46a75..edab30f 100644 --- a/Template/usaco.cpp +++ b/Template/usaco.cpp @@ -14,6 +14,9 @@ #define all(x) begin(x), end(x) #define tr(a, x) for (auto& a : x) #define mem(a, b) memset(a, (b), sizeof(a)) +#define pc __builtin_popcount +#define clz __builtin_clz +#define ctz __builtin_ctz using namespace std; using namespace __gnu_pbds; using namespace __gnu_cxx; using str = string; using ll = long long; using ld = long double; using cd = complex; using ii = pair; using pl = pair; using pd = pair;