原题链接:http://acm.nyist.net/JudgeOnline/problem.php?pid=27代码:01.#include <stdio.h>02.#include<string.h>03.int check[4][2]={{0,-1},{1,0},{0,1},{-1,0}};04.int arr[100][100];05.int row,col;06.void dfs(int r,int c)07.{08.int newr,newc;09.arr[r][c]=0;10.for(int i=0;i<4;i++)11.{12.newr=r+chec Read More
posted @ 2013-05-18 19:08 supersnow0622 Views(137) Comments(0) Diggs(0)