日期:2014-05-20 浏览次数:20555 次
public class Six {
public static void main(String[] args) {
int[] a = {1,2,5};
System.out.println("可能的方案如下:");
for (int i = 0; i < 6; i++) {
System.out.print(a[0]);
}
System.out.println();
for (int i = 0; i < 4; i++) {
System.out.print(a[0]);
}
System.out.print(a[1]);
System.out.println();
for (int i = 0; i < 2; i++) {
System.out.print(a[0]);
}
for (int i = 0; i < 2; i++) {
System.out.print(a[1]);
}
System.out.println();
for (int i = 0; i < 3; i++) {
System.out.print(a[1]);
}
System.out.println();
System.out.print(a[0]);
System.out.print(a[2]);
}
}