Codeforces and Polygon may be unavailable from May 23, 4:00 (UTC) to May 23, 7:00 (UTC) due to technical maintenance. ×

got MLE but can't still configure what's wrong with this program!

Revision en1, by Mars_Coder, 2023-06-01 17:18:28

Problem link: 1661B - Getting Zero submission: 208009051 I tried to solve this problem using the dfs algorithm. But I can't still configure what is causing the MLE verdict. Help if someone can.

Tags mle, dfs and similar

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Mars_Coder 2023-06-01 17:18:28 268 Initial revision (published)