Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var distanceMatrix = [
- [0,1,2,3,4,5,6,7,8,9,10,11,12,18,17,16,15,14,13,12,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],
- [1,0,1,2,3,4,5,6,7,8,9,10,11,17,16,15,14,13,12,11,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24],
- [2,1,0,1,2,3,4,5,6,7,8,9,10,16,15,14,13,12,11,10,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],
- [3,2,1,0,1,2,3,4,5,6,7,8,9,15,14,13,12,11,10,9,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22],
- [4,3,2,1,0,1,2,3,4,5,6,7,8,14,13,12,11,10,9,8,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21],
- [5,4,3,2,1,0,1,2,3,4,5,6,7,13,12,11,10,9,8,7,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],
- [6,5,4,3,2,1,0,1,2,3,4,5,6,12,11,10,9,8,7,6,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],
- [7,6,5,4,3,2,1,0,1,2,3,4,5,11,10,9,8,7,6,5,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18],
- [8,7,6,5,4,3,2,1,0,1,2,3,4,10,9,8,7,6,5,4,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],
- [9,8,7,6,5,4,3,2,1,0,1,2,3,9,8,7,6,5,4,3,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],
- [10,9,8,7,6,5,4,3,2,1,0,1,2,8,7,6,5,4,3,2,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],
- [11,10,9,8,7,6,5,4,3,2,1,0,1,7,6,5,4,3,2,1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14], //siam
- [12,11,10,9,8,7,6,5,4,3,2,1,0,8,7,6,5,4,3,2,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],
- [18,17,16,15,14,13,12,11,10,9,8,7,8,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21],
- [17,16,15,14,13,12,11,10,9,8,7,6,7,1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],
- [16,15,14,13,12,11,10,9,8,7,6,5,6,2,1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],
- [15,14,13,12,11,10,9,8,7,6,5,4,5,3,2,1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18],
- [14,13,12,11,10,9,8,7,6,5,4,3,4,4,3,2,1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],
- [13,12,11,10,9,8,7,6,5,4,3,2,3,5,4,3,2,1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],
- [12,11,10,9,8,7,6,5,4,3,2,1,2,6,5,4,3,2,1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],
- [11,10,9,8,7,6,5,4,3,2,1,0,1,7,6,5,4,3,2,1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14], //siam
- [12,11,10,9,8,7,6,5,4,3,2,1,2,8,7,6,5,4,3,2,1,0,1,2,3,4,5,6,7,8,9,10,11,12,13],
- [13,12,11,10,9,8,7,6,5,4,3,2,3,9,8,7,6,5,4,3,2,1,0,1,2,3,4,5,6,7,8,9,10,11,12],
- [14,13,12,11,10,9,8,7,6,5,4,3,4,10,9,8,7,6,5,4,3,2,1,0,1,2,3,4,5,6,7,8,9,10,11],
- [15,14,13,12,11,10,9,8,7,6,5,4,5,11,10,9,8,7,6,5,4,3,2,1,0,1,2,3,4,5,6,7,8,9,10],
- [16,15,14,13,12,11,10,9,8,7,6,5,6,12,11,10,9,8,7,6,5,4,3,2,1,0,1,2,3,4,5,6,7,8,9],
- [17,16,15,14,13,12,11,10,9,8,7,6,7,13,12,11,10,9,8,7,6,5,4,3,2,1,0,1,2,3,4,5,6,7,8],
- [18,17,16,15,14,13,12,11,10,9,8,7,8,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,1,2,3,4,5,6,7],
- [19,18,17,16,15,14,13,12,11,10,9,8,9,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,1,2,3,4,5,6],
- [20,19,18,17,16,15,14,13,12,11,10,9,10,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,1,2,3,4,5],
- [21,20,19,18,17,16,15,14,13,12,11,10,11,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,1,2,3,4],
- [22,21,20,19,18,17,16,15,14,13,12,11,12,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,1,2,3],
- [23,22,21,20,19,18,17,16,15,14,13,12,13,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,1,2],
- [24,23,22,21,20,19,18,17,16,15,14,13,14,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,1],
- [25,24,23,22,21,20,19,18,17,16,15,14,15,21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0]
- ];
Advertisement
Add Comment
Please, Sign In to add comment