第一题,选礼物(直接贪心算法,ac 100) n,m,k = [int(i) for i in input().split()] # print(n,m,k) items = [] for _ in range(n): item = [int(i) for i in input().split()] item[0] = 1/item[0] item[1] = 1/item[1] items.append(item) items = sorted(items,key=lambda x: (x[2],x[0],x[1]),reverse=True) # pri...