考虑构造数位为1234567890x的数,这个数一定能被x整除。
整除后的数作为y即可。
例如:x = 50 , x * y = 1233456789050 那么 y = 2469135781
小明认为一个整数是完美数,当且仅当这个数字上的数位包含0~9的所有数字。
By signing up a CodeFun2000 universal account, you can submit code and join discussions in all online judging services provided by us.