大数-数组实现--基础
高精度加法
P1601 A+B Problem(高精)
#include <iostream>
#include <cmath>
#include <cstring>
using namespace std;
const int N=505;
int a[N],b[N],c[N]; //a[0],b[0],c[0]存位数
void add()
{
int t=0;
int maxx=max(a[0],b[0]);
c[0]=maxx;
原创
2022-03-07 22:02:56 ·
323 阅读 ·
0 评论