This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import heapq | |
import sys | |
import math | |
sys.setrecursionlimit(10000) | |
INF = 999999999 | |
class Point: | |
def __init__(self, x, y): | |
self.x = float(x) | |
self.y = float(y) | |
def getCost(p,c): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import heapq | |
import sys | |
import math | |
sys.setrecursionlimit(10000) | |
INF = 999999999 | |
class Point: | |
def __init__(self, x, y): | |
self.x = float(x) | |
self.y = float(y) | |
def getCost(p,c): |