跳到正文

剪贴板

剪贴板 pu1ukep1

原文
剪贴板信息

剪贴板信息

收录
更新

C++代码模版

C++
#include<bits/stdc++.h>
#define int long long
//#define int unsigned long long
//#define int __int128
//pair
#define F first
#define S second
//maxnum
#define inf INT_MAX
#define linf LLONG_MAX
//#define inf LLONG_MAX
#define INF ULLONG_MAX
//module
#define mod 998244353
#define MOD 1000000007
//冲突
#define y1 AKChengAKIOI
#define y0 AndCTSCtoo
#define yn AndNOI
//函数
#define gcd __gcd
//output
#define yes cout<<"yes"
#define Yes cout<<"Yes"
#define YES cout<<"YES"
#define no cout<<"no"
#define No cout<<"No"
#define NO cout<<"NO"
//input
#define ina for(i=1;i<=n;i++)cin>>a[i];
#define fina for(i=1;i<=n;i++)a[i]=read();
//vector
#define pb push_back
using namespace std;
inline void fileopen()//打开文件
{
	freopen(".in","r",stdin);
	freopen(".out","w",stdout);
}
inline int read()//快读
{
	int x=0,f=1;
	char ch=getchar();
	while(!isdigit(ch))
	{
		if(ch=='-')
		{
			f=-f;
		}
		ch=getchar();
	}
	while(isdigit(ch))
	{
		x=(x<<3)+(x<<1)+(ch^48);
		ch=getchar();
	}
	return x*f;
}
inline __int128 read128()//读入__int128
{
	__int128 x=0,f=1;
	char ch=getchar();
	while(!isdigit(ch))
	{
		if(ch=='-')
		{
			f=-f;
		}
		ch=getchar();
	}
	while(isdigit(ch))
	{
		x=(x<<3)+(x<<1)+(ch^48);
		ch=getchar();
	}
	return x*f;
}
inline void fast()//InOut加速
{
	ios::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
}
inline int fpow(int a,int b)//快速幂
{
	if(b==0)
	{
		return 1;
	}
	if(b==1)
	{
		return a;
	}
	int x=fpow(a,(b>>1));
	if(b&1)
	{
		return x*x*a;
	}
	return x*x;
}
signed main()
{
	//fileopen();
	fast();
	return 0;
}