随笔分类 -  0x00 基本算法

ST算法模板
摘要:P3865 【模板】ST 表 #include <iostream> #include <cstdio> #include <cmath> using namespace std; const int N = 1e5 + 10; int n, m; int a[N]; int f[N][20]; i 阅读全文
posted @ 2022-07-02 20:23 我疯故我在 阅读(42) 评论(0) 推荐(0) 编辑
高精度模板
摘要:高精度加法 P1601 A+B Problem(高精) 读入数据时,四种运算均从个位数开始push_back,输出时从vector最高位开始。需要取尾0:减(高位可能被减为0)、乘(乘以0后全为0)、除(得到的结果高位可能为0) vector<int> add(vector<int> a, vect 阅读全文
posted @ 2022-06-30 10:00 我疯故我在 阅读(121) 评论(0) 推荐(0) 编辑




点击右上角即可分享
微信分享提示