题目描述
代码实现
package TEST;class Main{public static void main(String[] args) {for (int i = 100; i < 335; i++) {if(check(i)){System.out.println(i);}}}public static boolean check(int n){String a=n+""+n*2+n*3;if(a.contains("1")&&a.contains("2")&&a.contains("3")&&a.contains("4")&&a.contains("5")&&a.contains("6")&&a.contains("7")&&a.contains("8")&&a.contains("9")){return true;}else {return false;}}}
答案
192 219 273 327