How to solve ASC-29, Problem J (Wheels within wheels)
Hi, I am stuck at problem J of asc 29, and cant think of any solution. Can someone please guide me towards the solution.
http://codeforces.com/gym/100343