跳到正文

算法·理论

fast_read,fast_write

Song_stok_SZH约 1 分钟
原文
文章信息与版本

文章信息

收录
2025年12月12日
更新
2026年3月13日
篇幅
约 1 分钟

版本

  1. v1当前

从@Float_jay 那里偷过来的。

如有侵犯,请联系邮箱song123456708@126.com,我将会很快删除有关内容。

C++
#include<bits/stdc++.h>
using namespace std;
#define f_Getchar() getchar()
#define f_Putchar() putchar()
template <typename T> void read(T &x){
	x=0;int f=1;char c=getchar();
	for(;!isdigit(c);c=getchar())if(c=='-')f=-1;
	for(;isdigit(c);c=getchar())x=(x<<1)+(x<<3)+(c^48);
	x*=f;
}
template <typename T> void print(T x){
	if(x<0)putchar('-'),x*=-1;
	if(x>9)print(x/10);
	putchar(x%10+48);
}
__int128 x;//两条下划线
int main(){
	read(x);
	print(x);
}
原文