时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒 空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M Special Judge, 64bit IO Format: %lld
题目描述
Given , construct a matrix of size , whose entries are all either 0 or 1, and no three distinct entries satisfying that . If multiple solutions exist, print any one of them. If no solution, print "-1" in one line.
输入描述:
Input only one line containing two integers .
输出描述:
If solutions exist, print lines each containing a -string of length , denoting the matrix you construct. If no solution, print "-1" in one line.