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 listFeb 23, 2026 18:17satoru.netsatoru.netScore: 2,241,130Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 23, 2026 18:172,234,800981,347,802741,934,000151,986,000323,584
2Feb 23, 2026 18:172,237,745980,368,394746,248,000148,850,000319,488
3Feb 23, 2026 18:172,239,630985,497,417740,744,000155,108,000319,488
4Feb 23, 2026 18:172,239,798981,275,751746,267,000149,652,000282,624
5Feb 23, 2026 18:172,241,130984,098,933749,542,000146,910,000315,392
6Feb 23, 2026 18:172,241,913978,449,171755,487,000141,278,000327,680
7Feb 23, 2026 18:172,247,528991,119,577743,183,000155,828,000319,488
8Feb 23, 2026 18:172,248,150982,403,089741,390,000157,870,000282,624
9Feb 23, 2026 18:172,255,680979,246,242747,397,000154,875,000282,624