Binary string - MarisaOJ: Marisa Online Judge

Binary string

Time limit: 1000 ms
Memory limit: 256 MB
Print all binary strings of length $n$. ### Input - One line containing an integer $n$. ### Output - Print all binary strings of length $n$. The order of printing can be arbitrary. ### Constraints - $1 \le n \le 10$. ### Sample Input: ``` 3 ``` Output: ``` 000 001 010 011 100 101 110 111 ```