This content is archived!

For the 2018-2019 school year, we have switched to using the WLMOJ judge for all MCPT related content. This is an archive of our old website and will not be updated.

Read the input and store in a 2D array. Then loop through each square of 4 and count the number of unique squares. You can do this easily (but not necessarily efficiently) with a set.

Time complexity

\mathcal{O}(RC)


Problem

Read the problem.