grassseed - bradendubois/competitive-programming GitHub Wiki

Grass Seed Inc.

ID: grassseed

Difficulty: 1.3

CPU Time: 1 second

Memory: 1024 MB

Solution

One can sum the cost, C, multiplied by w and l for each lawn (since that is the area of the lawn) and output the total.