用1、2、2、3、4、5组成六位数,打印出所有不同的排列
用1、2、2、3、4、5组成六位数,打印出所有不同的排列. 要求:(1):"4"不能在第三位(2):"3"与"5"不能相连public class Xuanzhe { public static void main(String[] args) { String str; String regex = "^(?!.*?(?:53|35)|..4)[1-5]{6}$"; f...
2010-07-31 09:46:55 ·
255 阅读 ·
0 评论