摘要:
题:http://acm.hdu.edu.cn/showproblem.php?pid=4638 题意:题意为询问一段区间里的数能组成多少段连续的数。 分析:我们先从左到右地添加数,再假定添加进去的话那么连续段数就加1,由此我们加入一个数x后,要是x-1或x+1在这之前就已经加进去了,那么连续段数就 阅读全文
posted @ 2020-03-07 22:23
starve_to_death
阅读(186)
评论(0)
推荐(0)
摘要:
题:http://acm.hdu.edu.cn/showproblem.php?pid=4637 参考自:https://www.cnblogs.com/javawebsoa/p/3239001.html #include<bits/stdc++.h> using namespace std; #d 阅读全文
posted @ 2020-03-07 17:48
starve_to_death
阅读(121)
评论(0)
推荐(0)

浙公网安备 33010602011771号