Editorial for Arcadia Computing Contest 1 P2 - Chemistry


Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.

Author: kevlu8

Hint 1 Is there a constant maximum value for K?
Hint 2 K must either be 1, 2, or 4.
Solution Simply alternate rows between the pattern 1, 2, 1, 2 \dots and 3, 4, 3, 4 \dots

Comments

There are no comments at the moment.