声明:我的云剪贴板炸了,所以这个是我的剪贴板
int main() {
freopen(".txt", "r", stdin);
UnsignedBigInt a, b;
cin >> a >> b;
auto st = chrono::high_resolution_clock::now();
UnsignedBigInt ans = a + b;
(void)ans;
auto ed = chrono::high_resolution_clock::now();
cout << ans << endl << "add: " << (ed - st).count() / 1000 << endl;
return 0;
}
//测试结果:
//1:321
//2:343
//3:417
//4:384
//5:421
//6:408
//7:960
//8:414
//9:500
//10:427#include <bits/stdc++.h>
int main() {
std::ofstream f(".txt");
srand(time(0));
for (int i=1;i<=1e5;i++)f<<rand()%10;
f<<" ";
for (int i=1;i<=1e5;i++)f<<rand()%10;
}