Largest Square Submatrix of all 1's C#_user

Find the largest square submatrix consisting entirely of 1s as fast as possible.

Input

A 10,000 x 10,000 matrix of uint8 values (0 or 1) on STDIN.

0, 1, 0, 1, 1
0, 1, 1, 1, 1
0, 0, 1, 0, 0
1, 0, 1, 1, 0

Output

Print the side length of the largest all-ones square submatrix to STDOUT. The answer is guaranteed to be greater than 1.

For the example above, the output is:

2
Back to listMay 28, 2025 01:44vahookvahookError
Source Code

Source code access is restricted. Log in to request access.

Challenge History
DateChallengerCostTypeStatus
Sep 7, 2026 14:57C#_user10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 7, 2026 14:57020,511,32512,331,00002,113,536expected "10000", got "248 "
2Sep 7, 2026 14:57020,781,94512,369,00002,113,536expected "10000", got "248 "
3Sep 7, 2026 14:57020,519,49812,322,00002,113,536expected "10000", got "248 "
4May 28, 2025 01:4432,23531,449,91912,894,00002,482,176
5May 28, 2025 01:4432,24330,067,83311,905,000992,0002,482,176
6May 28, 2025 01:4432,25340,638,88812,901,00002,482,176
7May 28, 2025 01:4432,26826,990,53011,915,000992,0002,482,176
8May 28, 2025 01:4432,26827,870,08512,907,00002,478,080
9May 28, 2025 01:4432,27825,478,41811,918,000993,0002,273,280
10May 28, 2025 01:4432,30828,377,25611,929,000994,0002,269,184
11May 28, 2025 01:4432,32326,997,43011,935,000994,0002,490,368
12May 28, 2025 01:4432,39826,046,11411,963,000996,0002,273,280