补个第五题AC的 python 版本,A 、B哪个队伍人少,就优先把能量高的人安排进去 x, y = [int(_) for _ in sys.stdin.readline().strip().split()] power = [int(_) for _ in sys.stdin.readline().strip().split()] power = sorted([ (e,i) for i, e in enumerate(power)], key = lambda x: [-x[0], x[1]]) if x == y: print("A" * x...