对于长度为 3 位的一个 0、1 串,每一位都可能是 0 或 1,一共有 8 种可能。它们的前几个是:
000 001 010 ……
无
输出 8 行,按从小到大的顺序每行一个长度为 3 的 01 串。
无
000
001
010
011
100
101
110
111
By signing up a acjudge universal account, you can submit code and join discussions in all online judging services provided by us.