Help Needed: Why Am I Getting TLE on This Problem?

Правка en1, от Jesse_Pinkman_bch, 2024-12-30 20:01:24

Hi everyone,

I’m working on a problem where my solution isn’t getting Accepted (AC), and I’m struggling to figure out why. The time limit is 3 seconds so ideally even n^2 should pass . As far as I think my code is somewhat around O(n+mlogm) . Problem Link

Looking for positive response :) submission id --> 299093047 My code

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Jesse_Pinkman_bch 2024-12-30 20:01:24 498 Initial revision (published)