Whats wrong with Subsequence LCM?

Revision en1, by 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.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English alt_1234AA 2022-07-04 13:54:23 448 Initial revision (published)