1775: 【CSP循环-穷举】- 买公园门票▅

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:5 Solved:4

Description

某公园门票价格为:成人票 lns="http://www.w3.org/1998/Math/MathML">8 元 lns="http://www.w3.org/1998/Math/MathML">/ 张,儿童票 lns="http://www.w3.org/1998/Math/MathML">3 元 lns="http://www.w3.org/1998/Math/MathML">/ 张;某旅游团来公园游玩,该团内有成人和儿童(成人和儿童都有),共花了 lns="http://www.w3.org/1998/Math/MathML">40 元买门票。

请你分别计算出成人和儿童可能的人数,按照成人从少到多,儿童从多到少的规律数出结果。

Output

若干行,每行 lns="http://www.w3.org/1998/Math/MathML">2 个整数用空格隔开,分别代表成人和儿童可能的人数。(成人从少到多,儿童从多到少)