跳到正文

个人记录

剪贴板

hat_factory约 1 分钟
原文
文章信息与版本

文章信息

收录
2025年12月20日
更新
2026年5月3日
篇幅
约 1 分钟

版本

  1. v1当前

声明:我的云剪贴板炸了,所以这个是我的剪贴板

C++
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
C++
#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;
}
原文