#include<bits/stdc++.h>
using namespace std;
int t,x,y;
int main()
{
cin>>t;
for(int i=1;i<=t;i++)
{
cin>>x>>y;
if(y<=x*3) cout<<0<<' ';
else cout<<y-x*3<<' ';
if(y<=x*2) cout<<0<<endl;
else cout<<(y-x*2)/2<<endl;
}
return 0;
}
2018年江苏省信息与未来程序设计小能手比赛试题--(新)鸡兔同笼标程
最新推荐文章于 2024-09-13 17:43:09 发布