原创 Codeforces 1198A MP3 sort+尺取

A. MP3 time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output One

原创 尺取法

尺取法 尺取法:適用求連續區間滿足條件的最小區間,時間複雜度O(n)。 延伸右區間,滿足條件縮短左區間,得到符合條件的答案(不是最終結果),篩選答案 例題一 尺取題目一 Description A sequence of N po