int128邪修通过[:扮酷]
2026-02-04 09:00:02
发布于:江苏
4阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
void read(__int128 &x){
char c; bool f = 0;
while(((c = getchar()) < '0' || c > '9') && c != '-');
if(c == '-'){f = 1; c = getchar();}
x = c - '0';
while((c = getchar()) >= '0' && c <= '9')x = x * 10 + c - '0';
if(f) x = -x;
}
void write(__int128 x){
if(x < 0){putchar('-'); x = -x;}
if(x > 9)write(x / 10);
putchar(x % 10 + '0');
}
int main(){
__int128 a, b;
read(a);
read(b);
write(a+b);
return 0;
}
这里空空如也




有帮助,赞一个