#include<stdio.h>
#include<iostream>
using namespace std;
typedef struct node
{
int m;
int n;
}NODE;
int main()
{
NODE a;
int targe = 1;
while (cin >> a.m >> a.n)
{
if (a.n == 0)
{
break;
}
if (!targe)
{
cout << " ";
}
else
{
targe = 0;
}
int i = a.n - 1;
int j = a.m*a.n;
cout << j << " " << i;
}
if(targe)
{
cout<<"0 0";
}
system("pause");
return 0;
}
PAT 乙级 1010 一元多项式求导 (25分)
最新推荐文章于 2022-02-22 17:26:23 发布