经典简约
清爽简洁,回归本真
液态水晶
毛玻璃+霓虹光带
赛博朋克
霓虹故障艺术风
🚫
违规操作检测
禁止使用右键菜单
⚠️ 此操作已被系统记录
1

C hicken and rabbit s

📝 题解 🔵 仅限 C++
题目描述
<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
就绪
👋 你好!我是 AI 解题助手。
我已阅读了这道题,可以帮你分析思路、提供代码示例。
⚠️ 请先登录后使用