已AC代码:
#include<iostream>
using namespace std;
int main()
{
int t;
cin >> t;
while(t--)
{
int n, m;
cin >> n >> m;
int x, y;
y = (m - 2*n) / 2;
x = n-y;
if(x<0 || y<0 || m%2==1)
cout << "No answer" << endl;
else
cout << x << " " << y << endl;
}
return 0;
}