2388: 最短区间 Time Limit: 1 s Memory Limit: 128 MB Submit My Status Problem Description 有M种不同颜色的气球(颜色从1至M表示),现在有一排N个位置,需要往这N个位置中填充一些气球,可填也可不填.求最短的区间长度使的这个区间中包含M种颜色的气球.如果没有则输入-1. Input 第一行输入N和M,N表示位置长度,M表示气球颜色数量.(1≤M≤1000,1≤N≤106)(1≤M≤1000,1≤N≤106).…
描述 The bustling town of Siruseri has just one sports stadium. There are a number of schools, colleges, sports associations, etc. that use this stadium as the venue for their sports events. Anyone interested in using the stadium has to apply to the Ma…