![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
模拟
Miracle 007
这个作者很懒,什么都没留下…
展开
-
模拟大数加法
原题链接:http://acm.hdu.edu.cn/showproblem.php?pid=1002 分析:列竖式! 代码: #include <bits/stdc++.h> using namespace std; #define inf 0x3f3f3f3f typedef long long ll; const int N = 1e3 + 7; #define jiechufengyin std::ios::sync_with_stdio(0);cin.tie(0);cout.tie(0原创 2021-02-09 16:22:42 · 103 阅读 · 0 评论 -
模拟
模拟大数乘法: 例题:https://sdnuoj.rainng.com/problem/show/1232 分析:由乘法竖式得到灵感 代码: #include <bits/stdc++.h> using namespace std; typedef long long ll; #define inf 0x3f3f3f3f const int N = 1e3 + 7; const int M = 1e6 + 7; string sa, sb; int a[N], b[N]; int sum[M原创 2021-02-04 10:40:25 · 103 阅读 · 0 评论