report VI VI EN
Register | Login
  • HOME
  • PROBLEMSET
  • ROADMAP
  • COMPETITION
  • TOPIC
  • RANKING
  • GUIDE
  • MASHUP
  • ABOUT
  • CONTACT
  • Problem
  • Submit
  • Results
Binary string - FlandreOJ: Flandre 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 ```
Backtracking
Binary string
ABC string
Subset sum
Subset
Permutations
Group division
Knight's tour
N-queens problem
Maximum path
Knapsack
Build array
Sudoku
Minesweeper
Travelling Salesman Problem
Word search
Topic
Complete Search
Rating 800
Solution (2) Solution