Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.IOException;
- public class Solution {
- static int n = 15, m = 15;
- public static void main(String[] args) throws IOException {
- Map map = new Map(m, n);
- map.loadMapFromFile();
- map.printMap();
- map.setShortlyWayCount(map.searchShortlyWay(n - 1,m - 1) -1);
- System.out.println(map.getShortlyWayCount() < 9998 ? String.format("\nShortly way contains %d steps.", map.getShortlyWayCount()) : "\nNot found!");
- map.printShortTrack();
- map.printMap();
- map.printMapValue();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement