How to count the total number of such squares whose boundary consists of ones only?

Revision en1, by chepestb, 2022-05-15 09:07:26

I am stuck on problem to count total number of such squares whose boundary consists of ones only in binary matrix.Please help. Problem Link:

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English chepestb 2022-05-15 09:07:26 279 Initial revision (published)