废话不多说,直接上代码,代码不难,就是A+B,但是避免意外用个高精度,在避免出错的同时装个B,浅浅的检查亿遍
#include <iostream>
#include <string>
#include <vector>
#include <stdexcept>
#include <algorithm>
#include <cctype>
using namespace std;
class BN {
private:
vector<int> d;
bool neg;
public:
BN(const string& s) {
if (s.empty()) throw invalid_argument("");
neg = (s[0] == '-');
d.clear();
};
pair<string, string> vi(const string& s) {
size_t p = s.find(' ');
if (p == string::npos) throw invalid_argument("");
}
int main() {
try {
string l;
if (!getline(cin, l)) throw runtime_error("");
}