收获:
分为三步
L2-018 多项式A除以B (25 分)_galesaur_wcy的博客-CSDN博客
代码:
#include<iostream>
using namespace std;
#include<map>
#include<cmath>
struct node
{
int e; //指数
double c; //系数
}b[100005]; //存除数
map<int,double>mp1; //存被除数,其实也是最后的余数
map<int,double>mp2; //用来存商
int main()
{
//存被除数
int n;
cin>>n;
int maxn=0;
for(int i=0;i<n;i++)
{
int e;