高精度
(高精度 * int)
1 | vector<int> mul(vector<int> a, int b) //高精度乘法 |
高精度 / int
1 | vector<int> div(vector<int> a, int b) //高精度除法 |
高精度 + 高精度
1 |
|
高精度 - 高精度
1 |
|
高精度 * 高精度
思想:点阵乘法
1 |
|
高精度 / 高精度
思想: 模拟手工计算,对于前l1 ~ l2位每位判断能减几次(高精度减法)
1 |
|
1 | vector<int> mul(vector<int> a, int b) //高精度乘法 |
1 | vector<int> div(vector<int> a, int b) //高精度除法 |
1 | #include <iostream> |
1 | #include <iostream> |
思想:点阵乘法
1 | #include <iostream> |
思想: 模拟手工计算,对于前l1 ~ l2位每位判断能减几次(高精度减法)
1 | #include <stdio.h> |