Time Complexity

Revision en1, by sourabh_jangid, 2019-09-10 20:13:10

I am trying to solve 611D - New Year and Ancient Prophecy, I wrote 60357814 this solution. I think the Time Complexity of my solution is $$$O(n ^ 2\log{}n)$$$ but I am getting Time Limit Exceeded verdict. I want to know is my Time Complexity analysis is wrong or only $$$O(n ^ 2)$$$ solution will pass.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English sourabh_jangid 2019-09-11 08:55:26 81
en1 English sourabh_jangid 2019-09-10 20:13:10 305 Initial revision (published)