templates

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

View the Project on GitHub plasmatic1/templates

:warning: old/templateredux.cpp

Code

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned ll;
using uint = unsigned int;
template <typename T> using V = vector<T>;
template <typename T, typename U> using Um = unordered_map<T, U>;
template <typename T, typename U> using Om = map<T, U>;
template <typename T, typename U> using Us = unordered_set<T, U>;
template <typename T, typename U> using Os = set<T, U>;
#define f first
#define s second
#define mp make_pair
#define mt make_tuple
#define inf 0x3f3f3f3f
#define llinf 0x3f3f3f3f3f3f3f3f
#define pb push_back
#define popcount __builtin_popcount
#define clz __builtin_clz
#define ctz __builtin_ctz
#define sz(x) ((int)((x).size()))
#define all(x) (x).begin(), (x).end()
#define reset(arr, val) memset(arr, val, sizeof arr)
#define res0(arr) reset(arr, 0)
#define resinf(arr) reset(arr, 0x3f)
template <typename T> void mmax(T &a, T b) { a=max(a,b); }
template <typename T> void mmin(T &a, T b) { a=min(a,b); }
inline void sc(){}
template<typename F, typename... R> inline void sc(F &f,R&... r){cin>>f;scan(r...);}
template <typename F> inline void prln(F t){cout<<t<<'\n';}
template<typename F, typename... R> inline void prln(F f,R... r){cout<<f<<" ";prln(r...);}
inline void pr(){}
template<typename F, typename... R> inline void pr(F f,R... r){cout<<f;pr(r...);}
#line 1 "old/templateredux.cpp"
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned ll;
using uint = unsigned int;
template <typename T> using V = vector<T>;
template <typename T, typename U> using Um = unordered_map<T, U>;
template <typename T, typename U> using Om = map<T, U>;
template <typename T, typename U> using Us = unordered_set<T, U>;
template <typename T, typename U> using Os = set<T, U>;
#define f first
#define s second
#define mp make_pair
#define mt make_tuple
#define inf 0x3f3f3f3f
#define llinf 0x3f3f3f3f3f3f3f3f
#define pb push_back
#define popcount __builtin_popcount
#define clz __builtin_clz
#define ctz __builtin_ctz
#define sz(x) ((int)((x).size()))
#define all(x) (x).begin(), (x).end()
#define reset(arr, val) memset(arr, val, sizeof arr)
#define res0(arr) reset(arr, 0)
#define resinf(arr) reset(arr, 0x3f)
template <typename T> void mmax(T &a, T b) { a=max(a,b); }
template <typename T> void mmin(T &a, T b) { a=min(a,b); }
inline void sc(){}
template<typename F, typename... R> inline void sc(F &f,R&... r){cin>>f;scan(r...);}
template <typename F> inline void prln(F t){cout<<t<<'\n';}
template<typename F, typename... R> inline void prln(F f,R... r){cout<<f<<" ";prln(r...);}
inline void pr(){}
template<typename F, typename... R> inline void pr(F f,R... r){cout<<f;pr(r...);}
Back to top page