Why in problem like Spoj giveway and racetime , my merge sort tree solution getting TLE?

Правка en1, от Mac_prime, 2022-08-24 22:52:21

Problem Link: https://www.spoj.com/problems/RACETIME/

My solution Link: https://ideone.com/lfWNVt

it will be very helpful if someone analysis the time complexity of my solution

or give me some idea to solve these kinds of problem problems with the segment tree.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Mac_prime 2022-08-24 22:52:21 363 Initial revision (published)