diff options
| author | Gloria Mundi <gloria@gloria-mundi.eu> | 2024-03-10 19:58:50 +0100 |
|---|---|---|
| committer | Gloria Mundi <gloria@gloria-mundi.eu> | 2024-03-10 19:58:50 +0100 |
| commit | 0f29ac59c2bf0e5eafc2a6fa436e3070085e3a1d (patch) | |
| tree | 76ee14d540722a15007aaaa51e751650024a8bca /test.h | |
| parent | ffa3fde34b667dff3ffe011e1f80f43ee02d2f82 (diff) | |
improvde tests
Diffstat (limited to 'test.h')
| -rw-r--r-- | test.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -0,0 +1,13 @@ +#include <bits/stdc++.h> +using namespace std; +using ll = long long; +#define sz(x) ((int)(x).size()) +#define all(x) (x).begin(), (x).end() + +template<typename T> +T _lg_check(T n) { + assert(n > 0); + return __lg(n); +} + +#define __lg _lg_check |
