Omkar and Akmar【游戏,组合,逆元】—— Codeforces Round #724 (Div. 2)
https://codeforces.com/contest/1536/problem/F游戏游戏这方面,官方题解已经讲的很好了。https://codeforces.com/blog/entry/91520题目问的是thenumberofpossibledistinctgameswherebothplayersplayoptimally那我们只要把所有的结果考虑一下:AB交错,且AB之间最多有一