map
文章平均质量分 66
MastErXZ-∞
XZIT ACMer XL
展开
-
Hardwood Species
题目描述 Hardwoods are the botanical group of trees that have broad leaves, produce a fruit or nut, and generally go dormant in the winter. America's temperate climates produce forests with hundreds of hardwood species -- trees that share certain biological原创 2021-04-27 23:48:08 · 369 阅读 · 0 评论 -
多项式相加
题目描述 一条单链表可以表示一个一元多项式,每个节点包含三个域:指数、系数和后继节点(指针或引用)。 表示多项式3X4-6X2+5X-10的单链表如图所示。给定两个多项式,实现两个多项式相加算法。 输入 第一行输入包含两个整数m,n 后续为m行和n行数据 m,n分别代表两个多项式的项数 后续每一行代表多项式的项,包含a,b两个数据,表示该项的系数和指数。 输出 从较高指数到较低指数,依次输出求得的和。 每行一项,格式与输入相同,但无需输出项数,系数为0的项也不输出。 样..原创 2021-04-27 17:33:58 · 774 阅读 · 0 评论