Getting TLE on test 45 using same logic as mentioned in editorial.

Правка en2, от AnestheticCoder, 2022-07-28 12:25:00

Hello everyone, I was solving problem C of a div 3 contest 1702C - Поезд и запросы and I just used 2 hash maps to stores the first and last occurence of each station, but on test case 45 its saying TLE.

165981690

Then i read the editorial and tried to using just one hashmap but still it says TLE.

165982877

Please Help.

Теги hashmap, tle

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский AnestheticCoder 2022-07-28 12:25:00 223 (published)
en1 Английский AnestheticCoder 2022-07-28 12:24:02 640 Initial revision (saved to drafts)