刷呀刷。。。
AC的代码:
#include <stdio.h>int main()
{int n;int s,d;int a; //Team a's scorescanf("%d",&n);while(n--){scanf("%d%d",&s,&d);if((s+d)%2!=0){printf("impossible\n");continue;}a=(s+d)/2;if(s-a<0){printf("impossible\n");continue;}printf("%d %d\n",a,s-a);}return 0;
}