文章目錄

原题链接http://projecteuler.net/problem=52

Permuted multiples

It can be seen that the number, 125874, and its double, 251748, contain exactly the same digits, but in a different order.

Find the smallest positive integer, x, such that 2x, 3x, 4x, 5x, and 6x, contain the same digits.
倍数排列
可以看到数125874和它的两倍251748,包含相同的数字,只是顺序不同。
找出最小的正整数x,使得x,2x,3x,4x,5x,和6x包含相同的数字。

解答:
暴力吧,有一点要注意的是,第一个数字一定是1。

打赏作者

文章目錄