Latin squares

Input

The first line is an array representation of a Latin square of order n,
followed by other lines that represent nxn matrices with the same set of
symbols.

Output

The output is the list of arrays being orthogonal Latin squares for the
provided in the first line of the input. In this case, those in lines 2
and 3, since 4 is not a Latin square and 5 is not orthogonal.

Problem information

Author: HP CodeWars

Generation: 2026-01-25T15:03:21.308Z

© Jutge.org, 2006–2026.
https://jutge.org
