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

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

There is a river which can be considered as an infinitely long straight line with width W.

There are A piles on the river, and B types of wooden disks are available. The location of the i-th pile is (Xi, Yi).

The i-th type of wooden disks has radius Ri, and its price is Ci per disk.

Disks can be placed on the river such that for each wooden disk, its center must be one of the locations (Xi, Yi) of piles. We can only move on the wooden disks.

How to find the minimum cost such that we can cross the river? I am unable to approach questions like these. What would be the best method to approach this one?

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

»
11 лет назад, # |
  Проголосовать: нравится +19 Проголосовать: не нравится

This is a problem from the ongoing Codechef July Long challenge. Do not discuss solutions of contest problems before the end of said contest.