问题描述
试题编号: | 201912-2 |
试题名称: | 回收站选址 |
时间限制: | 1.0s |
内存限制: | 512.0MB |
问题描述: |
|
n=int(input())
num=[]
score=[0]*5
for i in range(n):
a=tuple(map(int,input().split()))
num.append(a)
for (i,j) in num:
total=0
if (i+1,j) in num and (i,j+1) in num and (i-1,j) in num and (i,j-1) in num :
if(i+1,j+1) in num:
total+=1
if (i+1,j-1) in num:
total+=1
if (i-1,j-1) in num:
total+=1
if (i-1,j+1) in num:
total+=1
score[total]+=1
for i in score:
print(i)