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 16, 2026 04:12Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 20:56Tomislav Tunkovic19.74CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 4, 2026 21:1409,812,6361,070,00002,121,728expected "2", got "50 "stderr
2Sep 4, 2026 21:1409,135,925989,00002,121,728expected "2", got "50 "stderr
3Aug 16, 2026 04:141,9159,836,909766,00002,121,728stderr
4Aug 16, 2026 04:141,9579,717,046783,00002,121,728stderr
5Aug 16, 2026 04:142,0009,524,001800,00002,121,728stderr
6Aug 16, 2026 04:142,0609,462,648824,00002,121,728stderr
7Aug 16, 2026 04:142,14711,313,498859,00002,121,728stderr
8Aug 16, 2026 04:142,2929,712,724917,00002,121,728stderr
9Sep 4, 2026 21:142,7029,217,7051,081,00002,121,728stderr
10Aug 16, 2026 04:142,72510,125,8451,090,00002,121,728stderr
11Aug 16, 2026 04:142,7459,829,4101,098,00002,121,728stderr
12Aug 16, 2026 04:142,7909,917,4691,116,00002,121,728stderr