3723 -- Conscription Windy has a country, and he wants to build an army to protect his country. He has...

Please Visit: http://ift.tt/1ajReyV



3723 -- Conscription

Windy has a country, and he wants to build an army to protect his country. He has picked up N girls and M boys and wants to collect them to be his soldiers. To collect a soldier without any privilege, he must pay 10000 RMB. There are some relationships between girls and boys and Windy can use these relationships to reduce his cost. If girl x and boy y have a relationship d and one of them has been collected, Windy can collect the other one with 10000-d RMB. Now given all the relationships between girls and boys, your assignment is to find the least amount of money Windy has to pay. Notice that only one relationship can be used when collecting one soldier.

http://ift.tt/1f6rwjx

http://ift.tt/1umO2it



3723 -- Conscription







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1umO2iz

via LifeLong Community

No comments:

Post a Comment