[Need Help] CSES — Planet Cycles

Revision en1, by introart, 2022-06-12 11:26:18

I am getting TLE in this CSES problem.

My Approach
Problem

Can anyone please tell me why it is showing TLE?

Tags cses, graph, dfs

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English introart 2022-06-12 11:26:18 746 Initial revision (published)