跳到正文

个人记录

最新快读快写模板

yi_hr约 2 分钟
原文
文章信息与版本

文章信息

发布
2025年2月14日
收录
2025年12月12日
更新
2026年11月21日
篇幅
约 2 分钟

版本

  1. v1当前
C++
#include<bits/stdc++.h>
#define io
#define ll long long
#define INF 0x3f3f3f3f
#define LINF 0x3f3f3f3f3f3f3f3f
#ifdef io
	constexpr int maxn=1<<10;
	char in[maxn],out[maxn],*p1=in,*p2=in,*p3=out;
	#define getchar() (p1==p2&&(p2=(p1=in)+fread(in,1,maxn,stdin),p1==p2)?EOF:*p1++)
	#define flush() (fwrite(out,1,p3-out,stdout))
	#define putchar(x) (p3==out+maxn&&(flush(),p3=out),*p3++=(x))
	class Flush{public:~Flush(){flush();}}_;
#endif
inline int read(){
	register int x=0,f=1;char c=getchar();
	while(c<'0'||c>'9'){if(c=='-')f=-1;c=getchar();}
	while(c>='0'&&c<='9')x=(x<<3)+(x<<1)+(c^48),c=getchar();
	return x*f;
}
template<typename T>
inline void put(T x,int y){
    x<0?x=-x,putchar('-'):0;static short Stack[50],top(0);
    do Stack[++top]=x%10,x/=10;while(x);
    while(top) putchar(Stack[top--]|48);
	putchar(y?'\n':' ');
}
using namespace std;
constexpr int N=1e6+9;
int n,m,a[N];

int main(){
//	freopen(".in","r",stdin);
//	freopen(".out","w",stdout);
#ifndef io
	ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#endif

	return 0;
}
原文