CCF201912-2回收站选址python满分程序
n=int(input())
dic={}
for i in range(n):
x,y=map(int,input().split())
if x not in dic:
dic[x]=[y]
else:
dic[x].append(y)
num=0
dict1={0:0,1:0,2:0,3:0,4:0}
for i in dic:
for j in dic[i]:
if (i+1) in dic and (i-1) in .
原创
2021-11-27 21:39:35 ·
595 阅读 ·
0 评论