814. Mezzo-forte

people stand in a circle with their heads down. When the bell rings they all raise their heads and either look at the person immediately to their left, the person immediately to their right or the person diametrically opposite. If two people find themselves looking at each other they both scream.

Define to be the number of ways that exactly half of the people scream. You are given and .

Find . Enter your answer modulo .

814. 中强音

人低着头等距站在某圆上。当钟声响起时,所有人瞬间抬头,并且立刻看向最靠近他的两人、正对着他的一人这三人其中之一。如果二人对视,那么这两人会立刻尖叫。

为正好有 人尖叫的方法数。已知

之值。


这个链接 回到源站。

这个链接 回到详细版题目目录。