高精度模板
加法
string add(string st1, string st2) {
string c;
int ans[5005] = {}, a[5005] = {}, b[5005] = {};
int n1 = st1.size();
int n2 = st2.size();
for (int i = 0; i < n1; i++) {
a[n1 - i] = st1[i] - '0';
}
for (int i = 0; i < n2; i++) {
b[n2 - i]
原创
2021-04-10 10:38:55 ·
69 阅读 ·
0 评论