Why am I getting TLE

Revision en1, by simp_pro, 2023-03-30 16:49:27

Question link

Submission link

My solution is in O(n^2*log(mod)) . It should pass easily

Tags help

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English simp_pro 2023-03-30 16:49:27 222 Initial revision (published)