dfs and similar
Hi! I am so sorry, Does the problem with tag of "dfs and similar" show that this solves ONLY with graphs?
Codeforces Round 1124 (Div. 1, Div. 2) Upsolving
Mock ICPC Prelims Contest 1 Solution Discussion