以下是使用 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]) side_pool = 0 to_remove = [] for i, p in enumerate(players): if p[0] >= min_stake: players[i] = (p[0] - min_stake, p[1]) side_pool += min_stake to_remove.append(i) to_remove.reverse() for i in to_remove: del players[i] max_power = max([p[1] for p in players]) winners = [p for p in players if p[1] == max_power] win_stake = side_pool / len(winners) for w in winners: w = (w[0] + win_stake, w[1]) return [p[0] for p in players] n = int(input()) a = list(map(int, input().split())) b = list(map(int, input().split())) results = texas_poker(n, a, b) for r in results: print(r) ``` [2025-05-25 10:05:24 | AI问答 | 313点数解答]