Why unordered_map giving wrong answer while map giving correct for the same problem.

Revision en1, by atlasworld, 2019-01-17 22:11:45

Hello , I was solving 510D .

why map in link1 is giving correct answer while un.map gives wrong.

the question is to choose k subsets ,to make their gcd = 1 and minimise the cost of choosing .

Any idea ! :

#### History

Revisions

Rev. Lang. By When Δ Comment
en1 atlasworld 2019-01-17 22:11:45 504 Initial revision (published)