Блог пользователя Igor.Ivanich

Автор Igor.Ivanich, 14 лет назад, По-английски

Hi everyone,

The problem which I've been stuck on is: http://cs.stanford.edu/group/acm/slpclive/problems/G.pdf

Can someone please give me some hints / idea how to solve this problem?

Cheers

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

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

http://www.catonmat.net/blog/mit-introduction-to-algorithms-part-twelve/.

The trick for problem G is replacing the bi variables with their negatives so sum constraints become difference constraints.