摘要:
Air Raid Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 8625 Accepted: 5155 Description Consider a town where all the streets are one-way 阅读全文
摘要:
Machine Schedule Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 15700 Accepted: 6734 Description As we all know, machine scheduling is a v 阅读全文
摘要:
1735: [Usaco2005 jan]Muddy Fields 泥泞的牧场 Description Rain has pummeled the cows' field, a rectangular grid of R rows and C columns (1 <= R <= 50, 1 <= 阅读全文
摘要:
棋盘游戏 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5344 Accepted Submission(s): 3157 Problem De 阅读全文
摘要:
P1966 火柴排队 题目描述 涵涵有两盒火柴,每盒装有 n 根火柴,每根火柴都有一个高度。 现在将每盒中的火柴各自排成一列, 同一列火柴的高度互不相同, 两列火柴之间的距离定义为: ∑(ai-bi)^2 其中 ai 表示第一列火柴中第 i 个火柴的高度,bi 表示第二列火柴中第 i 个火柴的高度。 阅读全文
摘要:
P1084 疫情控制 题目描述 H 国有 n 个城市,这 n 个城市用 n-1 条双向道路相互连通构成一棵树,1 号城市是首都,也是树中的根节点。 H 国的首都爆发了一种危害性极高的传染病。当局为了控制疫情,不让疫情扩散到边境城市(叶子节点所表示的城市),决定动用军队在一些城市建立检查点,使得从 首 阅读全文
摘要:
Crossed Matchings Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 2954 Accepted: 1918 Description There are two rows of positive integer nu 阅读全文