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

Правка en1, от 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. Язык Кто Когда Δ Комментарий
en1 Английский atlasworld 2019-01-17 22:11:45 504 Initial revision (published)