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 .

Here are my two submssions : link1 , link2

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 ! :


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