Largest Square Submatrix of all 1's NoSIMD_C#

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 listNov 9, 2025 20:46MikhailBurdukovMikhailBurdukovScore: 9,397,330Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 9, 2025 20:469,079,8683,657,337,4143,589,971,00041,976,0002,498,560
2Nov 9, 2025 20:469,212,8053,714,868,9793,631,150,00053,972,0002,506,752
3Nov 9, 2025 20:469,250,5803,727,034,8473,659,252,00040,980,0002,277,376
4Nov 9, 2025 20:469,367,5333,776,027,4513,705,036,00041,977,0002,445,312
5Nov 9, 2025 20:469,397,3303,793,581,3403,714,957,00043,975,0002,277,376
6Nov 9, 2025 20:469,403,9083,786,329,1963,707,584,00053,979,0002,273,280
7Nov 9, 2025 20:469,531,9483,839,243,5873,778,790,00033,989,0002,334,720
8Nov 9, 2025 20:469,555,2133,851,485,3443,780,107,00041,978,0002,306,048
9Nov 9, 2025 20:469,686,3603,901,925,4453,820,565,00053,979,0002,277,376