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

Автор AFGhazy, история, 9 лет назад, По-английски

http://codeforces.com/contest/445/problem/C

can any one explain the problem and the answer for me ? the tutorial and the problem statement are so mysterious for me thanks in advance.

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

»
9 лет назад, # |
Rev. 3   Проголосовать: нравится +3 Проголосовать: не нравится

A similar but quite easy question :

Q : Find the maximum average subset/sub-array of a given array ? Ans : Maximum Number in Array.

445C - DZY любит физику is just a graphical version of this question. But for 1 node,ans is defined to be 0 instead of oo. Hence you pick 2 nodes for which (x[a[i]] + x[b[i]]) / c[i] is maximum