服了这题。本题要注意一元多项式是什么意思这种叫一元多项式所以输入才会输入3 4 -5 2 6 1 -2 0这种东西所以才以指数下降方式输入所以零多项式意思就是原本多项式是一个常数求导之后变成0要输出0 0。好家伙初中没仔细看定义这种基础也忘了。#includebits/stdc.h using namespace std; int main() { int a, b, flag 0; while (cin a b) { if(b ! 0) { if(flag 1) cout ; flag 1; cout a * b b - 1; } } if(flag 0) cout 0 0; return 0; }