![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c/c++个人笔记
真正的飞鱼
这个作者很懒,什么都没留下…
展开
-
高精度加减乘除
学习途径:https://www.bilibili.com/video/BV1qr4y1w7mC?p=11.高精度加法(处理了结果中的前导零)思考:如果是负数如何相加代码如何写#include<iostream>#include<algorithm>#include<cstring>using namespace std;//c为进位数组//全局数组,编译器会将它的每个元素初始化为0int a[500], b[500], c[501], an原创 2020-12-24 20:08:37 · 73 阅读 · 0 评论 -
C++整数快速读写(快速读入+快速写)
//快读inline int read(){ int s = 0, t = 1; char ch = getchar(); //为了避免输入数字之前的空格造成影响以及判断正负 while (ch < '0' || ch>'9') { //判断是否是负数 if(ch=='-') { t = -1; } ch = getchar(); } while (ch >= '0' && ch <= '9') { s = s * .原创 2020-12-20 20:11:28 · 1549 阅读 · 1 评论