https://www.gravatar.com/avatar/8f3abece0f8608ce4b9c1e3212fd1b72?s=240&d=mp

CF1416A-k-Amazing Numbers

CF1416A-k-Amazing Numbers 题目: 题目描述: You are given an array $ a $ consisting of $ n $ integers numbered from $ 1 $ to $ n $ . Let’s define the $ k $ -amazing number of the array as the minimum number that occurs in all of the subsegments of the array having length $ k $ (recall that a subsegment of $