模板
C++#include<bits/stdc++.h>
// #define int long long
#define endl '\n'
using namespace std;
const int N=1e6+5;
char buf[1<<20], *pp1, *pp2;
char gc() {
if (pp1 == pp2) {
pp1 = buf;
pp2 = buf + fread(buf, 1, 1<<20, stdin);
if (pp1 == pp2) return EOF;
}
return *pp1++;
}
inline int read(){
int x=0,f=1;
char ch=gc();
while(ch<'0'||ch>'9')
{
if(ch=='-') f=-1;
ch=gc();
}
while(ch>='0'&&ch<='9')
{
x=(x<<1)+(x<<3)+(ch-48);
ch=gc();
}
return f*x;
}
struct FastIO {
template<class T>
FastIO& operator>>(T& ans) {
T x=0,f=1;
char ch;
ch=gc();
while(ch<'0'||ch>'9')
{
if(ch=='-') f=-1;
ch=gc();
}
while(ch>='0'&&ch<='9')
{
x=(x<<1)+(x<<3)+(ch-48);
ch=gc();
}
ans=f*x;
return *this;
}
}fin;
signed main() {
#if !defined(ONLINE_JUDGE)
freopen("1.in", "r", stdin);
//freopen("1.out", "w", stdout);
#endif
ios::sync_with_stdio(false);
cin.tie(0), cout.tie(0);
return 0;
}