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 listAug 18, 2026 00:19Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 5, 2026 00:44Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 6, 2026 17:3509,677,7431,502,000077,824expected "2", got "50 "stderr
2Sep 6, 2026 17:3509,541,7381,501,000077,824expected "2", got "50 "stderr
3Sep 6, 2026 17:3509,667,3571,540,000081,920expected "2", got "50 "stderr
4Aug 18, 2026 00:283,23710,640,1971,295,000081,920stderr
5Aug 18, 2026 00:283,6659,712,1741,466,000077,824stderr
6Aug 18, 2026 00:283,7659,535,3831,506,000081,920stderr
7Aug 18, 2026 00:283,7779,967,9811,511,000077,824stderr
8Aug 18, 2026 00:283,8279,873,7481,531,000077,824stderr
9Aug 18, 2026 00:283,8329,947,6261,533,000077,824stderr
10Aug 18, 2026 00:283,8479,567,6211,539,000045,056stderr
11Aug 18, 2026 00:283,9179,373,8771,567,000081,920stderr
12Aug 18, 2026 00:283,9579,482,1531,583,000081,920stderr