第一题sql,很简单 import sys lines = sys.stdin.readlines() n = int(lines[0]) res = set() dup = set() for i in range(1, n+1): name = lines[i].split()[1] if name in res: dup.add(name) else: res.add(name) print len(dup) 第二题,bfs,迷宫题,写完只能a0.9, 估计python被卡了,感觉没得优化了直接交了 import s...