HBC213134ShiftandReverse题解

一天到晚红烧的鱼 算法基础篇 57 0
想要检验自己的编程水平?来试试全网最全C++题库,让您在挑战中不断进步。
. He can rearrange the sequence using the following operation any number of times:. a_i, a_{i-1}, dots, a_1, a_n, a_{n-1}, dots, a_{i+1}. Bobo would like to know the number of different sequences can be obtained modulo

Bobo has a sequence a_1,a_2,dots,a_n a 1 ​ ,a 2 ​ ,…,a n ​ . He can rearrange the sequence using the following operation any number of times: + Select an integer i ( 1 le i le n 1≤i≤n) and change the sequence to a_i, a_{i-1}, dots, a_1, a_n, a_{n-1}, dots, a_{i+1} a i ​ ,a i−1 ​ ,…,a 1 ​ ,a n ​ ,a n−1 ​ ,…,a i+1 ​ . Bobo would like to know the number of different sequences can be obtained modulo (10^9+7) (10 9 +7).

HBC213134ShiftandReverse题解
-第1张图片-东莞河马信息技术
(图片来源网络,侵删)
不断学习,不断挑战,才能在编程领域中脱颖而出!全网最全C++题库,助您成为编程高手!

标签: HBC213134ShiftandReverse题解