package com.frank;
public class PalaceTest {
/**
* @param args
*/
static char[][] palaces=new char[10][];
static int[][] tempPalace=new int[10][];
static int[][] minPalace=new int[10][];
static int methodCount=0;
static int minStep=10000;
public static void main(String[] args) {
int nowRow=0;
int nowCell=0;
palaces[0]="###################################################".toCharArray();
palaces[1]="% ## #### ### ### # ####".toCharArray();
palaces[2]="# ## # ### ### ###### ### ############ # # #".toCharArray();
palaces[3]="# ## ## ### ## ## # # ## # # ####".toCharArray();
palaces[4]="# # # ## ## ### # # ######### # # # ##".toCharArra