http://poj.org/problem?id=1434
Fill the Cisterns!
Time Limit: 5000MS | Memory Limit: 10000K | |
Total Submissions: 1806 | Accepted: 653 |
Description
During the next century certain regions on earth will experience severe water shortages. The old town of Uqbar has already started to prepare itself for the worst. Recently they created a network of pipes connecting the cisterns that distribute water in each neighbourhood, making it easier to fill them at once from a single source of water. But in case of water shortage the cisterns above a certain level will be