#include <stdio.h>
#define N (20)
int main()
{
int arr[N][N];
int n;
int i, j;
if(n > N)
return 1;
// Fill array
for(i = n - 1; i >= 0; --i)
{
for(j = 0; j <= i; ++j)
{
arr[i][j] = i * n + j;
}
}
// Print out
for(i = 0; i < n; ++i)
{
for(j = 0; j < n - i - 1; ++j)
{
}
for(j = 0; j <= i; ++j)
{
}
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgojZGVmaW5lIE4gKDIwKQoKaW50IG1haW4oKQp7CiAgICBpbnQgYXJyW05dW05dOwogICAgaW50IG47CiAgICBpbnQgaSwgajsKCiAgICBzY2FuZigiJWQiLCAmbik7CgogICAgaWYobiA+IE4pCiAgICAgICAgcmV0dXJuIDE7CgogICAgLy8gRmlsbCBhcnJheQogICAgZm9yKGkgPSBuIC0gMTsgaSA+PSAwOyAtLWkpCiAgICB7CiAgICAgICAgZm9yKGogPSAwOyBqIDw9IGk7ICsraikKICAgICAgICB7CiAgICAgICAgICAgIGFycltpXVtqXSA9IGkgKiBuICsgajsKICAgICAgICB9CiAgICB9CgogICAgLy8gUHJpbnQgb3V0CiAgICBmb3IoaSA9IDA7IGkgPCBuOyArK2kpCiAgICB7CiAgICAgICAgZm9yKGogPSAwOyBqIDwgbiAtIGkgLSAxOyArK2opCiAgICAgICAgewogICAgICAgICAgICBwcmludGYoIiAgIik7CiAgICAgICAgfQoKICAgICAgICBmb3IoaiA9IDA7IGogPD0gaTsgKytqKQogICAgICAgIHsKICAgICAgICAgICAgcHJpbnRmKCIlNGQiLCBhcnJbaV1bal0pOwogICAgICAgIH0KCiAgICAgICAgcHJpbnRmKCJcbiIpOwogICAgfQoKICAgIHJldHVybiAwOwp9