#include <iostream>
int main()
{
int size = 8;
for (int i = 0; i < size; ++i)
{
for (int j = 0; j < size; ++j)
{
if (i == j || i == size - j - 1)
{
std::cout << "1 ";
}
else
{
std::cout << "0 ";
}
}
std::cout << std::endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKaW50IG1haW4oKQp7CiAgICBpbnQgc2l6ZSA9IDg7CiAgICAKICAgIGZvciAoaW50IGkgPSAwOyBpIDwgc2l6ZTsgKytpKQogICAgewogICAgICAgIGZvciAoaW50IGogPSAwOyBqIDwgc2l6ZTsgKytqKQogICAgICAgIHsKICAgICAgICAgICAgaWYgKGkgPT0gaiB8fCBpID09IHNpemUgLSBqIC0gMSkKICAgICAgICAgICAgewogICAgICAgICAgICAgICAgc3RkOjpjb3V0IDw8ICIxICI7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZWxzZQogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICBzdGQ6OmNvdXQgPDwgIjAgIjsKICAgICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgc3RkOjpjb3V0IDw8IHN0ZDo6ZW5kbDsKICAgIH0KCiAgICByZXR1cm4gMDsKfQ==