【每天一道编程系列-2018.1.29】(Ans)

【题目描述】

There are four numbers of 1, 2, 3, and 4. How many three digits numbers can they make up that are different from each other without repeating numbers? How much are they?



【题目翻译】

有1、2、3、4四个数字,它们能组成多少个互不相同且无重复数字的三位数?分别是多少?



【解题思路】

可填在百位、十位、个位的数字都是1、2、3、4。组成所有的排列后再去掉不满足条件的排列。



【本题答案】


【每天一道编程系列-2018.1.29】(Ans)【每天一道编程系列-2018.1.29】(Ans)【每天一道编程系列-2018.1.29】(Ans)【每天一道编程系列-2018.1.29】(Ans)



【每天一道编程系列-2018.1.29】(Ans)【运行结果】


【每天一道编程系列-2018.1.29】(Ans)