1353 - 气球

 

<span style="font-family:黑体;font-size:12pt;">商店里有一些气球,其中蓝气球和红气球共<span>n</span>只,蓝气球和黄气球共<span>m</span>只,黄气球和红气球共<span>k</span>只。问红、蓝、黄气球各有多少只?<span></span></span>

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

<span style="font-family:黑体;font-size:12pt;"><span>&nbsp;</span></span><span style="font-family:黑体;font-size:12pt;">输出 <span>red:5<span>&nbsp;&nbsp;&nbsp; </span>blue:8<span>&nbsp;&nbsp; </span>yellow:10</span></span>

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

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

输出 red:11   blue:10   yellow:18

输入

输出

样例

输入


                

输出


                

来源

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

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