1 条题解
-
0
可以不用高精度#include <bits/stdc++.h> using namespace std; using i128 = __int128_t; template<typename T>void qr(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*10+c-48; x=x*f; } template<typename T>void qw(T x) { if(x<0)x=-x,putchar('-'); if(x/10)qw(x/10); putchar(x%10+48); } int main() { i128 a,b; qr(a);qr(b); qw(a+b); return 0; }
- 1
信息
- ID
- 8113
- 时间
- 100ms
- 内存
- 1024MiB
- 难度
- 5
- 标签
- 递交数
- 48
- 已通过
- 21
- 上传者