AC代码:
#include <iostream>
#include<cstdio>
using namespace std;
int main()
{
int t;
scanf("%d", &t);
while(t--)
{
int j, t;
int m,n;
scanf("%d%d",&n, &m);
t = (m - 2*n) /2;
j = n - t;
if(j < 0 || t < 0 || m%2 != 0)
{
printf("No answer\n");
}
else
{
printf("%d %d\n",j,t);
}
}
return 0;
}