随笔分类 -  高精度

摘要:预处理 int Max_len; // 最多可能的位数 string a, b; void init() { cin >> a >> b; Max_len = 500; // int ind = Max_len, i = a.size() - 1; while(i >= 0) { ans[ind] 阅读全文
posted @ 2023-04-17 14:22 starlightlmy 阅读(35) 评论(0) 推荐(0)
摘要://高精度加法#include<cstdio>#include<string>#include<iostream>using namespace std;string x,y;int ans[1005],a[1004],b[1001]; int max(int a,int b){ if(a>b) r 阅读全文
posted @ 2021-03-28 13:06 starlightlmy 阅读(255) 评论(0) 推荐(0)