Make a spiral

Time limit: 1 s
Memory limit: 1024 MB

Statement

Input format

Output format

Notes

Examples
Example 1
Input Data
Output Data
1 5
11111 00001 11101 10001 11111
Example 2
Input Data
Output Data
2 5 6
11111 00001 11101 10001 11111 111111 000001 111101 100101 100001 111111
efrog logo efrog.team@gmail.com © 2024 efrog