Masala #YDR91OZKYU

Xotira 32 MB Vaqt 1000 ms
14

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