给定一个整数年份 n,要求找到大于 n 的最小“幸运年份”。 如果一个年份的各个位上数字均不相同(不含前导零),则称该年份为“幸运年份”。
如果一个年份的每位数字(不包含前导零)都不相同,则定义这个年份为幸运的。
多多会给出一些年份,对于每个年份,你可以帮忙找出大于这个年份的最小幸运年份吗。
By signing up a CodeFun2000 universal account, you can submit code and join discussions in all online judging services provided by us.