摘要:
题目概述 题目描述 Farmer John has noticed that his cows often move between nearby fields. Taking this into account, he wants to plant enough grass in each of 阅读全文
摘要:
题目概况 题意翻译 题意:给定一颗$N$个节点组成的树,3种颜色,其中K个节点已染色,要求任意两相邻节点颜色不同,求合法染色方案数。 题目描述 Farmer John has a large farm with $N$ barns ($1 \le N \le 10^5$), some of whic 阅读全文
摘要:
[USACO15DEC]最大流Max Flow 题目概括 题目描述 Farmer John has installed a new system of $N 1$ pipes to transport milk between the $N$ stalls in his barn ($2 \leq 阅读全文