1
0
Fork 0

Update include.hh

This commit is contained in:
Ariel 2024-01-15 16:40:44 +08:00 committed by GitHub
parent 68f930ce59
commit 65cc4225c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -1,6 +1,8 @@
#include<bits/stdc++.h> #include<bits/stdc++.h>
using namespace std; using namespace std;
#define __NARGS(...) std::tuple_size<decltype(std::make_tuple(__VA_ARGS__))>::value
using ll = int64_t; using ll = int64_t;
using ull = uint64_t; using ull = uint64_t;
using pii = pair<int, int>; using pii = pair<int, int>;
@ -38,8 +40,11 @@ struct igt {
} }
}; };
#define read(x, type) type x; cin >> x; #define untie ios_base::sync_with_stdio(0), cin.tie(NULL)
#define readvec(a, n, type) vector<type> a(n); for (int i = 0; i < (n); ++i) cin >> a[i]; template<typename T> void __read(T& x) { cin >> x; }
template<typename T, typename... U> void __read(T& x, U&... args) { cin >> x; __read(args...); }
#define read(type, ...) type __VA_ARGS__; __read(__VA_ARGS__);
#define readvec(type, a, n) vector<type> a(n); for (int i = 0; i < (n); ++i) cin >> a[i];
#define putvec(a) for (auto&& x : a) cout << x << ' '; cout << endl; #define putvec(a) for (auto&& x : a) cout << x << ' '; cout << endl;
#define debug(x) cerr << #x" = " << x << endl; #define debug(x) cerr << #x" = " << x << endl;
#define debugvec(a) cerr << #a" = "; for (auto&& x : a) cerr << x << ' '; cerr << endl; #define debugvec(a) cerr << #a" = "; for (auto&& x : a) cerr << x << ' '; cerr << endl;