How to solve this graph problem from codechef July cook off?

Revision en1, by aditya_sheth, 2019-07-22 14:01:11

Problem. I checked various solutions. I could see DSU and Dynamic programming in most of them. Any hint or full solution would be helpful.

Tags codechef cookoff, #graph theory, #number theory

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English aditya_sheth 2019-07-22 14:01:11 253 Initial revision (published)