#include <iostream>
using namespace std;
int main()
{
int x,n,flag=0;
while(cin>>x>>n)
{
if(n!=0)
{
if(flag==1) cout<<" ";
cout<<x*n<<" "<<n-1;
flag=1;
}
}
if(flag==0)
cout<<"0 0";
return 0;
}
【1010 一元多项式求导 (25 分)】
最新推荐文章于 2024-07-09 22:37:42 发布