📅  最后修改于: 2022-03-11 14:59:19.677000             🧑  作者: Mango
代码示例1
Stack stack = new Stack(); while (N > 0){stack.push(N % 2);N = N / 2;}for (int d : stack) StdOut.print(d);StdOut.print1n();