2453: 练82.2 三连击

Memory Limit:64 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:19 Solved:3

Description

将$1$,$2$,…,$9$ 共 $9$ 个数分成三组,分别组成三个三位数,且使这三个三位数的比例是 $A$:$B$:$C$,试求出所有满足条件的三个三位数,若无解,输出 “No!!!”。

Input

三个数,$A$,$B$,$C$。保证 $A < B < C$。

Output

若干行,每行 $3$ 个数字。按照每行第一个数字升序排列。

Sample Input Copy

1 2 3

Sample Output Copy

192 384 576
219 438 657
273 546 819
327 654 981

Source/Category