Div-3 F Problem Not clear

Revision en2, by thedebater, 2020-04-14 15:07:27

Hi guys.

I am having trouble understanding the tutorial to this problem in the recent Division 3 Contest.

https://codeforces.net/contest/1335/problem/F

Can anyone who has solved this problem explain the solution better?

I'm not saying explanation given in tutorial is bad but if someone could expound more, would definitely help.

Thanks!

Tags division 3, #dfs, #graphs, #dsu

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English thedebater 2020-04-14 15:07:27 1 Tiny change: 'is problemin the rec' -> 'is problem in the rec'
en1 English thedebater 2020-04-14 15:06:57 380 Initial revision (published)