Given an matrix of numbers between 1 and 9, compute how many subsquares it has with all the numbers between 1 and 9.
Input consists of several cases. Every case begins with and , followed by an matrix of integer numbers between 1 and 9. Suppose that and are between 3 and 100.
For every matrix, print the number of subsquares that have all the numbers between 1 and 9.
Author: Unknown
Translator: Salvador Roura
Generation: 2026-01-25T11:57:54.516Z
© Jutge.org, 2006–2026.
https://jutge.org