摘要:
该题我直接用的暴力搜索,因为之最大只有4*4,这个题最重要的是标记;#include<stdio.h>#include<stdlib.h>int max,map[6][6];int flagx(int i,int j, int n){ int re=0; for( int k=i;k<n;k++ ) { if( map[k][j]=='X' ) break; if( map[k][j]=='.' ) { map[k][j]=i; re++; ... 阅读全文
posted @ 2011-09-06 15:34
wutaoKeen
阅读(148)
评论(0)
推荐(0)