URGENT help needed on this question

Revision en1, by gatrmani, 2025-02-27 06:52:41

guys i need help on this problem: https://codeforces.net/contest/2072/problem/A

can someone tell me how to start i am very confused, do i need to know DFS for this?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English gatrmani 2025-02-27 06:52:41 202 Initial revision (published)