南阳64

 1 #include<stdio.h>
 2 int main()
 3 {
 4     //freopen("in.txt","r",stdin);
 5     int a,n,m;
 6     while(~scanf("%d",&a))
 7     {
 8         while(a--)
 9         {
10             scanf("%d%d",&n,&m);
11             if(n*2 > m||m%2)
12                 printf("No answer\n");
13             else
14             {
15                 printf("%d %d\n",n-(m-(2*n))/2,(m-(2*n))/2);
16             }
17         }
18     }
19 }
20         

 

posted @ 2016-12-28 11:37  Posase  阅读(110)  评论(0编辑  收藏  举报