国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

【算法筆記】Product of Polynomials

2022-01-03 12:23 作者:小幻不想碼代碼  | 我要投稿

his time, you are supposed to find?A+B?where?A?and?B?are two polynomials.

Input Specification:

Each input file contains one test case. Each case occupies 2 lines, and each line contains the information of a polynomial:

K?N1?aN1?N2?aN2?...?NK?aNK

where?K?is the number of nonzero terms in the polynomial,?Ni?and?aNi?(i=1,2,?,K) are the exponents and coefficients, respectively. It is given that?1K10,0NK<?<N2<N11000.

Output Specification:

For each test case you should output the sum of?A?and?B?in one line, with the same format as the input. Notice that there must be NO extra space at the end of each line. Please be accurate to 1 decimal place.

Sample Input:

2 1 2.4 0 3.2?

2 2 1.5 1 0.5

結(jié)尾無空行

Sample Output:

3 2 1.5 1 2.9 0 3.2

結(jié)尾無空行


【算法筆記】Product of Polynomials的評論 (共 條)

分享到微博請遵守國家法律
库尔勒市| 博兴县| 城市| 德昌县| 景宁| 额敏县| 祁阳县| 惠来县| 罗甸县| 安徽省| 新龙县| 城口县| 南雄市| 霞浦县| 乌拉特前旗| 南木林县| 囊谦县| 达尔| 丽江市| 兴业县| 桓台县| 鄂托克旗| 咸阳市| 合川市| 胶州市| 松原市| 历史| 封开县| 建平县| 留坝县| 鄢陵县| 平陆县| 昭通市| 武平县| 麟游县| 孟村| 琼海市| 肥乡县| 鄂州市| 清原| 道真|