排列
Time Limit:1000MS Memory Limit:65536K
Total Submit:87 Accepted:41
Description
用1,2,3,4,5,6,7,8,9组成三个三位数abc def ghi每一个数字恰好用一次,要求满足abc:def:ghi=1:2:3输出所有解
Input
无
Output
用1,2,3,4,5,6,7,8,9组成三个三位数abc def ghi每一个数字恰好用一次,要求满足abc:def:ghi=1:2:3输出所有解
Sample Input
无
Sample Output
192 384 576
....
后面还有多组,这里省略了
Source
lrj程序入门
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AK1122 {
class Program {
static void Main(string[] args) {
Console.WriteLine("192 384 576\n219 438 657\n273 546 819\n327 654 981");
}
}
}