1. 换礼物,a,b,c任意两个可以换一个,求最大换取礼物 二分查找 class Solution: def numberofprize(self , a , b , c ): # write code here high = (a+b+c) * 2 // 3 low = 0 while low <= high: mid = (high + low) // 2 higher = 0 lower = 0 fo...