随笔分类 -  高精度

摘要:题目大意: Input" role="presentation">InputInput(4,(3,2,1,4))(5,(3,5,1,2,4))-1Output" role="presentation">OutputOutput15,67思路: 考试时居然把这道题推出来... 阅读全文
posted @ 2018-07-09 16:25 全OI最菜 阅读(180) 评论(0) 推荐(0)
摘要:题目大意: 输入n" role="presentation">nn个不大于1024" role="presentation">10241024的数字,求它们的积。Input" role="presentation">InputInput3123456Output" r... 阅读全文
posted @ 2018-07-07 21:02 全OI最菜 阅读(94) 评论(0) 推荐(0)
摘要:题目大意: 思路:1.DFS考场推了半天这道题,没发现什么规律,于是打了一个DFS就跑。。。#include using namespace std;int n;long long sum;void dfs(int x,int k) { if (x>n||k==... 阅读全文
posted @ 2018-05-12 15:45 全OI最菜 阅读(90) 评论(0) 推荐(0)
摘要:题目大意: 输入两个不大于10^40的数,输出它们的积。思路: 很明显的一道高精乘。 用数组a[i]和b[i]记录两个乘数,用c[i]记录答案。 千万不要忘记用字符数组或字符串读入!代码:#include #include #include using namespa... 阅读全文
posted @ 2018-02-02 19:10 全OI最菜 阅读(128) 评论(0) 推荐(0)