POJ-3320-Jessica's Reading Problem(尺取法模板)

题目 Sample Input 5 1 8 8 8 1 Sample Output 2 给你一个数列,数列中的数可以重复,找出一段区间包含数列中所有的数,求最短区间。 用map维护区间不同数的个数。 //Memory: 2284K Time: 438MS #include<cstdio> #include<cstring> #include<algorithm> #include<iostream
相关文章
相关标签/搜索