跳到正文

个人记录

__int128 IO

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

文章信息

发布
2024年10月2日
收录
2025年12月12日
更新
2026年11月11日
篇幅
约 1 分钟

版本

  1. v1当前

输入输出范围在ll范围内时有效。

C++
istream& operator>>(istream& is,__int128& x){
    long long y;
    is>>y;
    x=y;
	return is;
}
ostream& operator<<(ostream& os,const __int128& x){
    long long y=x;
    os<<y;
    return os;
}
原文