POJ2301+水~~~~~~
有比这更水的么。。。。。。。。。。。。。。
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
1 #include<stdio.h> 2 int main(){ 3 int n; 4 scanf("%d",&n); 5 while( n-- ){ 6 int sa,sb; 7 scanf("%d%d",&sa,&sb); 8 if( (sa+sb)%2!=0 ){ 9 printf("impossible\n"); 10 continue; 11 } 12 int a = (sa+sb)/2; 13 int b = sa-a; 14 if( a<0||b<0 ){ 15 printf("impossible\n"); 16 continue; 17 } 18 printf("%d %d\n",a>b?a:b,a>b?b:a); 19 } 20 return 0; 21 }
keep moving...