KRKYYDS

快读模板(附带快写)
//from TheOnlyMan
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#include<iostream>
#include<algorithm>

using namespace std;
typedef long long ll;

template<class T>inline
void read(T&x)
{
	x=0; char ch=getchar();
	while(!isdigit(ch))ch=getchar();
	while(isdigit(ch))x=x*10+ch-'0',ch=getchar();
	return;
}

template<class A,class...B>inline
void read(A&x,B&...y)
{
	read(x)&&read(y...); return;
}

template<class T>inline
void print(T x)
{
	int t[20]={0},pos=0;
	while(x)t[++pos]=x%10,x/=10;
	if(!pos)putchar('0');
	else while(pos)putchar(t[pos--]+'0');
	return;
}

template<class T>inline
void print(T x,char ch)
{
	print(x),putchar(ch);
}

int main()
{

	return 0;
}

posted on 2021-11-08 11:53  KRKYYDS  阅读(40)  评论(0编辑  收藏  举报