蓝桥杯 基础练习 01字串
问题描述
Java 代码实现
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
for (int i = 0; i < 32; ++i) {
System.out.printf("%05d\n", Integer.valueOf(Integer.toBinaryString(i)));
}
in.close();
}
}