题目描述
<div> Chicken and rabbits are in a same cage. As we all know, chicken has two legs but rabbit has four. Now </div> <div> we know the number of legs in the cage is A, please tell me how many animals may in the cage at least </div> <div> and at most. </div>
输入格式
<div> The first line of the input contains the number of test cases in the file. Each test case that follows </div> <div> consists of one lines. each case contains only one integer numbers A specifying the total legs in the </div> <div> cage . </div>
输出格式
<p> For each test case, print a line contains the answer </p>
样例
样例输入 1
2
3
20
样例输出 1
0 0
5 10
提交代码
请先登录后提交
🤖 AI 解题助手
DeepSeek
就绪