顺丰视觉第一题AC,第二题27%,没刷到类似的题,好伤心。
tmp = {'A':0,'B':0,'C':0,'D':0,'E':0,'F':0,'G':0,'H':0,'I':0,'J':0,'K':0,'L':0,'M':0,} t_st = 'ABCDEFGHIJKLM' while True: try: n = eval(input()) st = input() num = list(map(eval, input().split())) for i in range(len(t_st)): if t_st[i] not in st: tmp[t_st[i]] = num[i] maxnum = tmp[sorted(tmp, key = lambda x:tmp[x])[-1]] a = [key for key in tmp if tmp[key]==maxnum] if len(a) == 1: print(a[0]) else: print(min(a)) except: break
#笔试题目##顺丰科技##计算机视觉岗#