Why unordered_map giving wrong answer while map giving correct for the same problem.
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 ! :
AMA: TheOneYouWant
Atcoder ABC #351 Short Solution Discussion