2012 Asia Hangzhou Regional Contest 给出N*N的矩阵,所有标记为0,当中有K个点标记为1.而且能够在该位置放置一个能够覆盖曼哈顿距离为r的草人.问最少放置几个草人,能够覆盖所有标记为0的点 DFS就可以,注意仅仅须要覆盖标记为0的点 #include "stdio.h" #include "string.h" int inf=0x3f3f3f3f; int n,k,ans; int x[11],y[11],w[11]; int h…
It's harvest season now! Farmer John plants a lot of corn. There are many birds living around his corn field. These birds keep stealing his corn all the time. John can't stand with that any more. He decides to put some scarecrows in the field to driv…