Masala #YDR91OZKYU
Make a spiral
Your task, is to create a NxN spiral with a given \(size\).
Kiruvchi ma'lumotlar:
Chiquvchi ma'lumotlar:
Misollar
# | input.txt | output.txt |
---|---|---|
1 |
8 |
1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 1 1 1 1 1 1 1 0 1 1 0 0 0 0 1 0 1 1 0 1 0 0 1 0 1 1 0 1 1 1 1 0 1 1 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 |