Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.56 KB | None | 0 0
  1. import java.io.IOException;
  2.  
  3. public class Solution {
  4.     static int n = 15, m = 15;
  5.  
  6.     public static void main(String[] args) throws IOException {
  7.         Map map = new Map(m, n);
  8.         map.loadMapFromFile();
  9.         map.printMap();
  10.         map.setShortlyWayCount(map.searchShortlyWay(n - 1,m - 1) -1);
  11.         System.out.println(map.getShortlyWayCount() < 9998 ? String.format("\nShortly way contains %d steps.", map.getShortlyWayCount()) : "\nNot found!");
  12.         map.printShortTrack();
  13.         map.printMap();
  14.         map.printMapValue();
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement