Lib/Template
code:c++
#include<bits/stdc++.h>
#include<atcoder/all>
using namespace std;
using namespace atcoder;
using mint = modint998244353;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep1(i, n) for (int i = 1; i < (int)(n); i++)
#define rrep(i, n) for (int i = (int)(n)-1; i >= 0; i--)
#define __STDCPP_FLOAT128_T__
#define int long long
#define ll long long
#define ALL(v) (v).begin(), (v).end()
#define NP next_permutation
#define PLL pair<long long,long long>
#define VL vector<long long>
#define VVL vector<vector<long long>>
#define VVVL vector<vector<vector<long long>>>
#define VPLL vector<pair<long long,long long>>
#define STL set<long long>
#define MPLL map<long long,long long>
#define SP setprecision(12)
constexpr ll inf = 4001001001001001001ll;
constexpr ll mod = /* 1000000007 */ 998244353;
constexpr double pi = 3.141592653589793;
vector<ll> d8x = {1,1,0,-1,-1,-1,0,1};
vector<ll> d8y = {0,1,1,1,0,-1,-1,-1};
vector<ll> d4x = {1,0,-1,0};
vector<ll> d4y = {0,1,0,-1};
//小数出力
//cout << setprecision(12);
//struct
struct Ruiseki{
vector<ll> v;
Ruiseki(vector<ll> &vec){
ll n = vec.size();
v.resize(n+1);
rep(i,n) vi+1 = vi + veci;
}
ll get(ll l,ll r){//閉区間!!
return vr+1-vl;
}
};
//max
template< typename T1, typename T2 >
inline bool chmax(T1 &a, T2 b) { return a < b && (a = b, true); }
//min
template< typename T1, typename T2 >
inline bool chmin(T1 &a, T2 b) { return a > b && (a = b, true); }
//join
template<typename T> string join(vector<T> &vec ,const string &sp=" "){
int si = vec.size();
if(si==0){
return "";
}else{
stringstream ss;
rep(i,si-1){
ss << veci << sp;
}
ss << vecsi - 1;
return ss.str();
}
}
//print
void print() { cout << '\n'; }
template<typename T>
void print(const T &t) { cout << t << '\n'; }
template<typename T>
void print(vector<T> &vec){cout << join(vec) << '\n'; }
template<typename Head, typename... Tail>
void print(const Head &head, const Tail &... tail) {
cout << head << ' ';
print(tail...);
}
//Yes
string Yes(bool x){
if(x) return "Yes\n";
return "No\n";
}
string YES(bool x){
if(x) return "YES\n";
return "NO\n";
}
bool in_range(int l,int x,int r){//閉区間
return ((l <= x ) && (x <= r) )||( (r <= x ) && (x <= l));
}
int div_ceil(int x,int y){
return (x+y-1)/y;
}
void yakubun(ll &a,ll &b){
ll g = gcd(a,b);
a /= g;
b /= g;
}
//Template End
signed main(void){
}