#include<stdio.h>#include<iostream>intmain(){int a, b;
bool first = true;while(std::cin >> a >> b){if(b !=0&& a !=0){if(!first){
std::cout <<" ";}
std::cout << a * b <<" "<< b -1;
first = false;}}if(first){
std::cout <<"0 0";}return0;}
一元多项式求导(c++)#include <stdio.h>#include <iostream>int main() { int a, b; bool first = true; while (std::cin >> a >> b) { if (b != 0 && a != 0) { if (!fir...