Editorial for COCI '06 Contest 6 #2 Magija
                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.
        Submitting an official solution before solving the problem yourself is a bannable offence.
The cell  in the given quarter is copied to three other cells. The coordinates of those cells are (depending on the implementation):
- If the upper left cell is 
, the coordinates are
,
and
.
 - If the upper left cell is 
, the coordinates are
,
and
.
 
After copying the cells we add the error, changing the specified cell.
Comments