Whats wrong with Subsequence LCM?

Правка en1, от alt_1234AA, 2022-07-04 13:54:23

I solved Subsequence LCM of Yesterdays Contest.

First I used map and "\n", it gave me tle

Then I used unordered map and "\n" gave AC.

wasted a lot of time :(.

Can anyone please tell me why this happened?

unordered_map Solution (AC): Link

Map solution (TLE) : Link

Thank you and have a nice day.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский alt_1234AA 2022-07-04 13:54:23 448 Initial revision (published)