跳到正文

个人记录

快读快输模板(__int128)

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

文章信息

发布
2025年1月17日
收录
2025年12月12日
更新
2026年11月18日
篇幅
约 2 分钟
获赞
2

版本

  1. v1当前

C++
#include<bits/stdc++.h>
namespace FastIO{
	template <typename T> inline 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,typename... Args> inline void read(T &x,Args &...args){
		read(x);
		read(args...);
	}
	template <typename T> inline void print(T x){
	    if(x<0)putchar('-'),x*=-1;
	    if(x>9)print(x/10);
	    putchar((x%10)^48);
	}
	template <typename T,typename... Args> inline void print(T x,Args ...args){
		print(x);
		putchar(' ');
		print(args...);
	}
}
using namespace std;
using namespace FastIO;
__int128 x;
signed main(){
	read(x);
	print(x);
}

Arlecchino Forever~

原文