跳到正文

剪贴板

剪贴板 7141y60h

原文
剪贴板信息

剪贴板信息

收录
更新

模板:高精度(int128)

C++
//模板:int128
#include <bits/stdc++.h>
using namespace std;
#define int __int128

inline void fin(__int128 &s)
{
	s = 0;
	char c = ' ';
	while (c > '9' || c < '0') c = getchar();
	while (c >= '0' && c <= '9') 
	{
		s = s * 10 + c - '0';
		c = getchar();
	}
}

inline void fout(__int128 x)
{
	if (x > 9) fout(x / 10);
	putchar(x % 10 + '0');
}

signed main()
{
	int a,b;
	fin(a),fin(b);
	fout(a + b);
	return 0;
}