IOI 2011

Ricehub

Example:
Budget: / Harvest:

Task

Harvest Rice fields as much as possible, but within the budget you have.
How to play

  1. Click on Rice fields to harvest.
  2. Click on Dots to locate the Rice hub .
  3. Cost = sum of distance from each harvested Rice fields to Rice hub.
    If you harvested 2 fields at 1st dot and 4th dot, and you locate Rice hub at 6th dot,
    cost = (6-1)+(6-4) = 7
  4. If your budget is more than 0 and maximum number of Rice fields are harvested, you WIN, Yahoo!