Lang:Java
Edit12345678910111213141516171819202122232425262728293031import java.util.LinkedList;import java.util.List;import java.util.ListIterator;import java.util.Scanner;import java.util.Stack;import javax.swing.text.StyledEditorKit.BoldAction;import sun.security.util.Length;/*** hihocoder :ouraRoad* to find that if there is a ouraRoad in a extra map** print true or false** @author zxq**/public class Main {// a list array to storage the line of the mapstatic private List[] theMap = null;// a array<int> to storage the line num of the pointstatic private int [] lineNum = null;//if there is point has the odd degreestatic private boolean degreeFlag = false;//the stack to storage the print list