Problem Description Neko has a loop of size n. The loop has a happy value ai on the i−th(0≤i≤n−1) grid. Neko likes to jump on the loop.She can start at anywhere. If she stands at i−th grid, she will
群 一个群(Group)是一个代数结构,它包含了一个集合以及一个在这个集合上定义的二元运算,满足以下四个主要性质。 封闭性:对于群中的任意两个元素 a 和 b,通过群的二元运算,它们的组合 a * b 也必须属于该群。换句话说,运算结果不会使元素离开群。 结合性:群中的二元运算是结合的,即对于任意元素 a、b 和 c,(a * b) * c = a * (b * c)。 单位元素:群中存