摘要: A. Diverse Substring 找普遍性(特殊解即可)。 最简单的便是存在一个区间$[i, i + 1] (1 include include using namespace std; const int N = 1010; int n; char str[N]; int main(){ 阅读全文
posted @ 2019-07-30 19:53 DMoRanSky 阅读(150) 评论(0) 推荐(0) 编辑
摘要: A. Vasya and Chocolate 模拟题。数据会爆$int$,要开$long$ $long$ B. Vasya and Isolated Vertices 考虑最小时,两两连边,答案为$max(n 2 m, 0)$ 考虑最大时,除了$m$为$1或0$特判以外,每次尝试用最多的边拓展一个点 阅读全文
posted @ 2019-07-30 13:59 DMoRanSky 阅读(192) 评论(0) 推荐(0) 编辑