1352 - 马戏团

 

<span style="font-family:黑体;font-size:12pt;">马戏团有鸟和大象<span>,</span>它们共有<span> n </span>个头<span>,m</span>只脚<span>.</span>问有多少只鸟和大象。<span>(2&lt;n,m&lt;1000)</span></span> 

<span style="font-family:黑体;font-size:12pt;"><span>&nbsp;&nbsp; </span></span><span style="font-family:黑体;font-size:12pt;">输入<span> 10 24</span></span> 

<span style="font-family:黑体;font-size:12pt;"><span>&nbsp;&nbsp; </span></span><span style="font-family:黑体;font-size:12pt;">输出<span>xiang:2 niao:8</span></span> 

<span style="font-family:黑体;font-size:12pt;"><span>&nbsp;&nbsp; </span></span>

<span style="font-family:黑体;font-size:12pt;"><span>&nbsp;&nbsp; </span></span><span style="font-family:黑体;font-size:12pt;">输入<span>36 100</span></span> 

<span style="font-family:黑体;font-size:12pt;"><span>&nbsp;&nbsp; </span></span><span style="font-family:黑体;font-size:12pt;">输出<span>xiang:14 niao:22</span></span> 

输入

输出

样例

输入


                

输出


                

来源

四年级题目-双重循环练习题

时间限制 1 秒
内存限制 128 MB
讨论 统计
上一题 下一题