BeyondW

碎月

【BZOJ】2252: [2010Beijing wc]矩阵距离

Description   假设我们有矩阵,其元素值非零即1 a11…… a1m ……………. an1…….anm   定义aij与akl之间的距离为D(aij,akl)=abs(i-k)+abs(j-L)  Input 输入文件的第一行为两个整数,分别代表n和...

2016-09-14 12:43:52

阅读数:668

评论数:0

BZOJ1646: [Usaco2007 Open]Catch That Cow 抓住那只牛

Description Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 <= N ...

2016-08-24 18:51:44

阅读数:1219

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭