摘要: Mr. Frog has an integer sequence of length n, which can be denoted as a1,a2,⋯,ana1,a2,⋯,anThere are m queries. In the i-th query, you are given two in 阅读全文
posted @ 2019-07-25 21:56 StarHai 阅读(225) 评论(0) 推荐(0) 编辑
摘要: A Gragh Games Unsolved. B Crazy Binary String 题解:水题,子序列只要统计0和1数量,取最小值然后乘2就是答案; 对于子串:先记录0和1 前缀和的差值,然后找差值相等的距离最远的两个位置即可; 参考代码: #include<bits/stdc++.h> # 阅读全文
posted @ 2019-07-25 20:44 StarHai 阅读(361) 评论(0) 推荐(0) 编辑