How to solve ASC-29, Problem J (Wheels within wheels)

Revision en1, by theRevenant, 2016-06-21 08:30:24

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://mirror.codeforces.com/gym/100343

Tags asc, scc

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English theRevenant 2016-06-21 08:30:24 209 Initial revision (published)