#P10467. Identical Snowflakes
Identical Snowflakes
Identical Snowflakes
Your task is to determine whether any two snowflakes in a given collection are identical. Each snowflake has six arms, and for each snowflake you will be provided with six measurements corresponding to the lengths of these arms. Two snowflakes are considered identical if the lengths of their corresponding arms are exactly the same.
In other words, if snowflake A has arms a1, a2, a3, a4, a5, a6 and snowflake B has arms b1, b2, b3, b4, b5, b6, then they are identical if and only if \[ a_i = b_i \quad \text{for all } i = 1,2,3,4,5,6. \]
inputFormat
The input begins with an integer n
(the number of snowflakes). Each of the following n
lines contains 6 space-separated integers representing the lengths of the six arms of one snowflake.
outputFormat
If there exists at least one pair of snowflakes with identical corresponding arms, output Twin snowflakes found.
Otherwise, output No two snowflakes are alike.
sample
2
1 2 3 4 5 6
1 2 3 4 5 6
Twin snowflakes found.