Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб. Prepared by Ibrahim Mesecan.
Binary Strings
Question:
A binary code represents data or any instructions using
only the two binary digits, 0 and 1.
Make a program to generate all the binary strings
with the length given (n).
Input specification
You will be given one integer (n) the length of
of binary strings where 1 ≤ n ≤ 12.
Output specification
Show all binary strings with the length n.
Every string starts from 0 and then goes to 1.
Each string is shown in a separate line. No space
is used within the characters of a string.
Sample Input I
3
|
Sample Input II
4
|
Sample Output I
000
001
010
011
100
101
110
111
|
Sample Output II
0000
0001
0010
0011
0100
0101
0110
0111
1000
1001
1010
1011
1100
1101
1110
1111
|
Для отправки решений необходимо выполнить вход.
|