public static void to(int m,int n){
int remain = m-n;
for(int i=0;i<=n;n--){
List l = new ArrayList();
for(int j=0;j l.add(1);
}
List insert = new ArrayList();
for(int k=0;k if(k==0||k==m-n-1){
insert.add(k,0);
}else{
insert.add(1);
}
}
for(int j=0;j<=n;j++){
List result = new ArrayList();
result = l;
result.addAll(j,insert);
for(int z=0;z System.out.print(result.get(z));
}
System.out.println();
}
}
}
阅读(844) | 评论(0) | 转发(1) |