Example #1
0
 static int GetDistance(Top u, Top v)
 {
     return(Math.Abs(u.X - v.X) + Math.Abs(u.Y - v.Y));
 }
Example #2
0
 static int GetDistance(Top u, Top v)
 {
     return Math.Abs(u.X - v.X) + Math.Abs(u.Y - v.Y);
 }