摘要: 题目描述给定 nn 个点,mm 条有向边,给定每条边的容量,求从点 ss 到点 tt 的最大流。输入格式第一行包含四个正整数nn、mm、ss、tt,用空格分隔,分别表示点的个数、有向边的个数、源点序号、汇点序号。... 阅读全文
posted @ 2019-11-10 12:06 风骨散人 阅读(165) 评论(0) 推荐(0) 编辑
摘要: DescriptionOn a grid map there are n little men and n houses. In each unit time, every little man can move... 阅读全文
posted @ 2019-11-10 11:54 风骨散人 阅读(121) 评论(0) 推荐(0) 编辑
摘要: DescriptionDearboy, a goods victualer, now comes to a big problem, and he needs your help. In his sale are... 阅读全文
posted @ 2019-11-10 10:49 风骨散人 阅读(106) 评论(0) 推荐(0) 编辑