#P16814. [蓝桥杯 2026 国 Python B] 蓝桥大富翁
[蓝桥杯 2026 国 Python B] 蓝桥大富翁
Problem Description
Xiao Lan developed a game called “Lanqiao Monopoly”. There are a total of players in the game, numbered from to .
At the start of the game, each player has some initial points. In particular, player starts with points.
The game goes through multiple rounds of point updates. In each round, all players’ points are updated at the same time: for any player, their new points equal the product of the points of all other players except themselves, before this round’s update. For example, with players whose initial points are , in the first round:
- Player ’s new points are .
- Player ’s new points are .
- Player ’s new points are .
So after the first round ends, the three players’ points become .
Now, please compute the value of the total product of points of all players after the -th round ends, modulo .
Output Format
This is an output-only (fill-in-the-blank) problem. You only need to compute the result and submit it. The result is a single integer. When submitting, you only need to write a program that outputs this integer; any extra content will not receive any points.
Hint
Translated by ChatGPT 5