ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1858. Magic Cube

Little hint to make writing of this stupid problem a bit easier
When you consider placing of a new cube to partially built construct, not to consider several cases of rotations (depending on the position of face with non-zero number) - try to rotate randomly till the cube will fit already-constructed part. This is the most tedious part of the code (at least for me) that could be avoided.

Edited by author 25.06.2014 03:19