Generation of Combinatorial Objects · Generating Subsets

Lesson 3

Nikolai Chukhin · Alexander S. Kulikov

Programming problem.

Write a program that reads (as usual, from standard input) an integer \(1 \le n \le 10\) and outputs all binary sequences of length \(n\).

5 points
Public samples
Public sample 1
Input
1
Expected output
0 1