import sys n, m = map(int, input().strip().split()) time_weights = [] for i in range(n):     p = list(map(int, input().strip().split()))     time_weights.append(p)      ds = [] for i in range(m):     d = int(input().strip())     ds.append(d) result = [] for d in ds:     max_weight =  0     for item in time_weights:         if item[0] >= d and item[1] >= max_weight:             max_weight = item[1]     if max_weight == 0:         result.append(-1)     else:         result.append(max_weight) for r in result:     print(r) 这是我的80%。请问大佬哪里没有考虑到吗?另外第二题有做出来的吗?我的超内存,只有20%通过
点赞 1

相关推荐

牛客网
牛客企业服务