自用缺省源。
#include <bits/stdc++.h>
using namespace std;
namespace staring
{
using LL = long long;
using ULL = unsigned long long;
#define fir first
#define sec second
#define FOR(i,a,b) for(int i = (a), i##E = (b); i <= i##E; i++)
#define ROF(i,a,b) for(int i = (a), i##E = (b); i >= i##E; i--)
template<typename TYPE>
int gmax(TYPE &x, const TYPE& y){return x < y? x = y, 1 : 0;}
template<typename TYPE>
int gmin(TYPE &x, const TYPE& y){return y < x? x = y, 1 : 0;}
static constexpr int SIZE = 1 << 20;
static char buffin[SIZE]{}, *pin1{}, *pin2{};
static char buffout[SIZE]{}, *pout{buffout};
#define GETC() (pin1 == pin2 && (pin2 = (pin1 = buffin) + fread(buffin, 1, SIZE, stdin), pin1 == pin2)? EOF : *pin1++)
#define PUTC(c) (pout - buffout == SIZE && (fwrite(buffout, 1, SIZE, stdout), pout = buffout), *pout++ = c)
template<typename TYPE>
void read(TYPE &x)
{
static int signf{0}, chin{0};
x = signf = 0, chin = GETC();
while(chin < '0' || chin > '9') signf |= chin == '-', chin = GETC();
while(chin >= '0' && chin <= '9') x = (x << 3) + (x << 1) + (chin ^ 48), chin = GETC();
if(signf) x = -x;
}
template<typename TYPE>
void write(TYPE x, char ch = ' ')
{
static char stack[64]{}, top{0};
!x && PUTC('0'), x < 0 && (x = -x, PUTC('-'));
while(x) stack[top++] = x % 10 | 48, x /= 10;
while(top) PUTC(stack[--top]);
if(ch) PUTC(ch);
}
}using namespace staring;
void mainSolve()
{
}
int main()
{
auto fileIO = [](string file)
{
string In = file + ".in";
string Out = file + ".out";
freopen(In.c_str(), "r", stdin);
freopen(Out.c_str(), "w", stdout);
};
// fileIO("");
int testCount = 1;
// read(testCount);
while(testCount--) mainSolve();
fwrite(buffout,1,pout-buffout,stdout);
return 0;
}