Блог пользователя marcose18

Автор marcose18, 12 лет назад, По-английски

Can someone please explain how to solve the problem http://mirror.codeforces.com/problemset/problem/453/B I am unable to understand even the editorials here http://mirror.codeforces.com/blog/entry/13190 that how not taking the factors of given array a[i] will minimise the expression like in editorials and operation is done to remove the prime factors of a[i] using bitmask.Also I wasn;t able to understand the dp part.So a detailed explanation will be highly appreciated. Thanks in advance.

  • Проголосовать: нравится
  • +2
  • Проголосовать: не нравится

»
12 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

a person who know bitmasks & dp well can undrestand the solotion whit this hints... i think you nedd to know more of Dp ans Bitmask :D