摘要: 题目 题目详情 (pintia.cn) 使用string来存放大数,解题思路相当于模仿手算 最后有一个需要注意的地方,测试点二是一个a小于b的情况,这种情况商为0,余数为a #include <iostream> #include<stdio.h> #include<string> #include 阅读全文
posted @ 2021-11-09 15:29 Mr。atopos 阅读(35) 评论(0) 推荐(0)
摘要: 这个题有几个坑,思路比较简单,处理起来繁琐 最终也没有全通过,测试点1没有通过 #include <iostream> #include<stdio.h> #include<string> #include<algorithm> #include<math.h> using namespace st 阅读全文
posted @ 2021-10-30 14:35 Mr。atopos 阅读(44) 评论(0) 推荐(0)
摘要: 没好好读题,把第一个数当成输入要判定的数了,关键是输出的结果就一个错的 然后就开始找为什么那个错了,一度以为题出错了(lll¬ω¬) #include <iostream> #include<stdio.h> #include<string> #include<algorithm> #include 阅读全文
posted @ 2021-10-29 14:20 Mr。atopos 阅读(25) 评论(0) 推荐(0)
摘要: 这个题挺迷的 如果同时存在多项式部分,常数部分不用输出 例: 输入 2 3 1 0 输出 6 2 如果只存在常数部分,还要输出常数项的指数(0),零多项式是这个的一种 例: 输入 1 0 输出 0 0 #include <iostream> #include<string> #include<alg 阅读全文
posted @ 2021-10-29 13:35 Mr。atopos 阅读(41) 评论(0) 推荐(0)