摘要:
http://poj.org/problem?id=3600 枚举subimage第一行在image中的位置,然后在image中选取c列,若这c列中有r行和subimage相同,那么即为有解。code:#include<cstdio>#include<cstring>#include<iostream>usingnamespacestd;intvis[21];charsmap[21][21],imap[21][21];intr,c,R,C,flag;intcheck(intcr){//判断imap中是否有r行与smap相同inti,j,count=0,x=0 阅读全文
posted @ 2012-04-14 08:30
追逐.
阅读(366)
评论(0)
推荐(1)
浙公网安备 33010602011771号