Java TLE With CodeForces Garland Problem

Правка en1, от nmetlapalli, 2021-10-07 06:33:09

Hi all,

I’ve been attempting the CF problem “An impassioned circulation of affection”. I came up with a solution in Java, but it gives me TLE. I thought the time complexity of my program was O(n*q), which I thought should pass the constraints of the problem, but it gives me TLE. Therefore, I was wondering what I was doing wrong. Here is the link to my code: https://replit.com/@NehaMetlapalli/C-An-impassioned-circulation-of-affection#Main.java

I appreciate all help. Thanks!

Теги tle, java

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский nmetlapalli 2021-10-07 06:33:09 574 Initial revision (published)