CSES MONSTERS . Need help with code

Revision en2, by pratikshaw, 2023-07-29 08:11:54

Problem link : https://cses.fi/problemset/task/1194 Submission link: https://cses.fi/problemset/result/6625261/

I have done the problem in n*m which is the most optimised one, (1<=n,m<=10^3) . Even then I am getting TLE in one test case

Tags #help, #submissions, #cses, #graph

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English pratikshaw 2023-07-29 08:11:54 2 Tiny change: '<=n,m<=10^6) . Even t' -> '<=n,m<=10^3) . Even t'
en1 English pratikshaw 2023-07-29 08:11:37 275 Initial revision (published)