三位数
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
Background
Special for beginners, ^_^
Description
现有3个不同的数字 ,它们可以组成6个不同的三位数数字。
已知这6个三位数数字的和是 ,若有解,输出 (注意顺序),否则输出No Answer
。
Format
Input(three.in)
three.in
次询问,每次询问相互独立。
第一行为一个整数 。
接下来每组数据输入一个整数 。
Output(three.out)
three.out
第一行输出一个整数 -1。
每次询问输出 的答案,若无解输出No Answer
。
Samples
2
1332
1333
-1
1 2 3
No Answer
Limitation
three.in three.out
信念
- Status
- Done
- Rule
- Ledo
- Problem
- 6
- Start at
- 2023-1-2 21:15
- End at
- 2023-12-31 23:15
- Duration
- 8714 hour(s)
- Host
- Partic.
- 14