题意:就是把一个数字分成一个奇数和一个偶数相乘,
题解:水题:
代码:
#include<stdio.h>
typedef long long ll;
int main()
{
ll i,n,t,cnt,sum,m;
scanf("%lld",&t);
cnt=0;
while(t--)
{
cnt++;
scanf("%lld",&n);
m=n;
if(n%2!=0) printf("Case %lld: Impossible\n",cnt);
else
{
while(n%2==0)
{
n=n/2;
}
sum=n;
printf("Case %lld: %lld %lld\n",cnt,sum,m/sum);
}
}
return 0;
}