結果 : max heap in python code