随笔分类 -  暴力枚举

摘要:10801: 帝国交通 题目描述 围绕新校的操场建有m(1到1000)个蚂蚁王国,根据相邻关系依次编号为1..m。其中有n(1到10000)对王国的国王之间有亲戚关系,有亲戚关系的王国需要有道路相通(可以以其它王国作为中转),任何一条道路只能建在相邻的两个王国之间,求出至少需要建多少条道路才能满足这 阅读全文
posted @ 2019-01-23 21:53 zangzang 阅读(153) 评论(0) 推荐(0)
摘要:Snuke has an integer sequence A of length N.He will make three cuts in A and divide it into four (non-empty) contiguous subsequences B,C,D and E. The 阅读全文
posted @ 2018-12-08 10:12 zangzang 阅读(200) 评论(0) 推荐(0)