#P1008. [NOIP 1998 普及组] 三连击

[NOIP 1998 普及组] 三连击

Description

Partition the 99 numbers 1,2,,91, 2, \ldots , 9 into 33 groups to form 33 three-digit numbers, such that these 33 three-digit numbers are in the ratio 1:2:31 : 2 : 3. Find all triplets of three-digit numbers that satisfy this condition.

Input Format

None.

Output Format

Several lines, each containing 3 numbers. Sort the lines in ascending order by the first number in each line.

192 384 576
* * *
...

* * *
(剩余部分不予展示)

Hint

NOIP 1998 Junior Problem 1.

Translated by ChatGPT 5