Codeforces Round 210 (Div. 2)
A
Levko and Table
Codeforces
800
原题
←B →
翻译中…

Levko loves tables that consist of $*n*$ rows and $*n*$ columns very much. He especially loves beautiful tables. A table is beautiful to Levko if the sum of elements in each row and column of the table equals $*k*$.

翻译中…

Unfortunately, he doesn't know any such table. Your task is to help him to find at least one of them.

翻译中…

Input

翻译中…

The single line contains two integers, $*n*$ and $*k*$ ($1 ≤ *n* ≤ 100$, $1 ≤ *k* ≤ 1000$).

翻译中…

Output

翻译中…

Print any beautiful table. Levko doesn't like too big numbers, so all elements of the table mustn't exceed $1000$ in their absolute value.

翻译中…

If there are multiple suitable tables, you are allowed to print any of them.

翻译中…

Note

翻译中…

In the first sample the sum in the first row is $1 + 3 = 4$, in the second row — $3 + 1 = 4$, in the first column — $1 + 3 = 4$ and in the second column — $3 + 1 = 4$. There are other beautiful tables for this sample.

翻译中…

In the second sample the sum of elements in each row and each column equals $7$. Besides, there are other tables that meet the statement requirements.

翻译中…

样例

Input #1
2 4
Output #1
1 3
3 1
InputCopy OutputCopy
Input #2
4 7
Output #2
2 1 0 4
4 0 2 1
1 3 3 0
0 3 2 2
InputCopy OutputCopy
题目信息
题号
361A
时间限制
1 s
内存限制
256 MB
标签
构造
模拟

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。