|
||||||||||
Hack ItTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2123 Accepted Submission(s): 717 Special Judge Problem Description Tonyfang is a clever student. The teacher is teaching he and other students "bao'sou". The teacher drew an n*n matrix with zero or one filled in every grid, he wanted to judge if there is a rectangle with 1 filled in each of 4 corners. He wrote the following pseudocode and claim it runs in $O(n^2)$: let count be a 2d array filled with 0s As a clever student, Tonyfang found the complexity is obviously wrong. But he is too lazy to generate datas, so now it's your turn. Please hack the above code with an n*n matrix filled with zero or one without any rectangle with 1 filled in all 4 corners. Your constructed matrix should satisfy $1 \leq n \leq 2000$ and number of 1s not less than 85000. Input Nothing. Output The first line should be one positive integer n where $1 \leq n \leq 2000$. n lines following, each line contains only a string of length n consisted of zero and one. Sample Input
Sample Output
Source | ||||||||||
|