ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1928. Another Ecology Problem

If you're confused about the conditions
Posted by Otrebus 5 Feb 2016 02:28
I got AC by finding the solution(s) with the maximum sized grant that Warmtown can receive if both towns request grants optimally. If there are several solutions with the same grant, pick the one with the smallest grant for Freezetown (not sure if this latter sorting key is required but it worked for me).