以下是使用 Python 实现的代码: ```python def texas_poker(n, a, b): players = list(zip(a, b)) while len([p for p in players if p[0] > 0]) > 1: min_stake = min([p[0] for p in players if p[0] > 0]) new_players = [] side_pool = 0 for p in players: if p[0] > 0: p = (p[0] - min_stake, p[1]) side_pool += min_stake new_players.append(p) players = new_players max_power = max([p[1] for p in players if p[0] > 0]) winners = [p for p in players if p[1] == max_power and p[0] > 0] for w in winners: w = (w[0] + side_pool / len(winners), w[1]) players = winners result = [p[0] for p in players] return result n = int(input()) a = list(map(int, input().split())) b = list(map(int, input().split())) result = texas_poker(n, a, b) for r in result: print(r) ``` [2025-05-25 11:19:14 | AI问答 | 310点数解答]