贪心1004
ACM As One 

所属分类:文章/文档
开发工具:Visual C++
文件大小:1KB
下载次数:1
上传日期:2018-04-26 23:52:08
上 传 者zilewwy
说明:  Were Tian Ji lives in nowadays, he will certainly laugh at himself. Even more, were he sitting in the ACM contest right now, he may discover that the horse racing problem can be simply viewed as finding the maximum matching in a bipartite graph. Draw Tian's horses on one side, and the king's horses on the other. Whenever one of Tian's horses can beat one from the king, we draw an edge between them, meaning we wish to establish this pair. Then, the problem of winning as many rounds as possible is just to find the maximum matching in this graph. If there are ties, the problem becomes more complicated, he needs to assign weights 0, 1, or -1 to all the possible edges, and find a maximum weighted perfect matching...
(For each input case, output a line containing a single number, which is the maximum money Tian Ji will get, in silver dollars.)

文件列表:
贪心1004.cpp (1485, 2018-04-26)
题目.txt (2985, 2018-04-26)

近期下载者

相关文件


收藏者