I have a solution that is working locally fine with the stdin values. However, when I run it on the submission panel stdin [-1721,155] becomes [-10000, -10000].
See below for more
class Solution:
def escapeGhosts(self, ghosts, target):
"""
:type ghosts: List[List[int]]
:type target: List[int]
:rtype: bool
"""
print(ghosts)
print(target)Input:
[[-2125,1628],[-983,1294],[-418,729],[-3338,415],[-727,1038],[-3021,732],[-2644,1109],[-1471,1782],[-3479,274],[-1969,1784],[-1683,1994],[-1333,1644],[-237,548],[-269,580],[-3053,700],[-1560,1871],[-2314,1439],[-3466,287],[-2283,1470],[-3276,477],[-476,787],[-223,534],[-1023,1334],[-2213,1540],[-2988,765],[-1446,1757],[-2719,1034],[-215,526],[-1527,1838],[-1806,1947],[-1317,1628],[-2022,1731],[-2422,1331],[-2793,960],[-2605,1148],[-257,568],[-445,756],[-3196,557],[-1127,1438],[-3031,722],[-3436,317],[-3072,681],[-630,941],[-2018,1735],[-550,861],[-3553,200],[-1271,1582],[-1049,1360],[-684,995],[-3128,625],[149,162],[-666,977],[-3177,576],[-3505,248],[-1690,2001],[-2145,1608],[-987,1298],[-3487,266],[-1896,1857],[-187,498],[-146,457],[-3476,277],[-3114,639],[-64,375],[-2111,1642],[-2982,771],[-1931,1822],[-2709,1044],[-33,344],[-2600,1153],[-1705,2016],[-857,1168],[-3384,369],[-2235,1518],[-998,1309],[-3033,720],[-2342,1411],[-1944,1809],[-798,1109],[80,231],[-2602,1151],[-73,384],[29,282],[-1172,1483],[-395,706],[-621,932],[-232,543],[-1861,1892],[-71,382],[-208,519],[-3178,575],[-740,1051],[-430,741],[-2702,1051],[-2683,1070],[-2598,1155],[-869,1180],[-2939,814],[-883,1194],[-1514,1825]]
[-1721,155]
Output:
false
Expected:
true
Stdout:
[[1, 0], [11, 0], [21, 0], [31, 0], [41, 0], [51, 0], [61, 0], [71, 0], [81, 0], [91, 0], [101, 0], [111, 0], [121, 0], [131, 0], [141, 0], [151, 0], [161, 0], [171, 0], [181, 0], [191, 0], [201, 0], [211, 0], [221, 0], [231, 0], [241, 0], [251, 0], [261, 0], [271, 0], [281, 0], [291, 0], [301, 0], [311, 0], [321, 0], [331, 0], [341, 0], [351, 0], [361, 0], [371, 0], [381, 0], [391, 0], [401, 0], [411, 0], [421, 0], [431, 0], [441, 0], [451, 0], [461, 0], [471, 0], [481, 0], [491, 0], [501, 0], [511, 0], [521, 0], [531, 0], [541, 0], [551, 0], [561, 0], [571, 0], [581, 0], [591, 0], [601, 0], [611, 0], [621, 0], [631, 0], [641, 0], [651, 0], [661, 0], [671, 0], [681, 0], [691, 0], [701, 0], [711, 0], [721, 0], [731, 0], [741, 0], [751, 0], [761, 0], [771, 0], [781, 0], [791, 0], [801, 0], [811, 0], [821, 0], [831, 0], [841, 0], [851, 0], [861, 0], [871, 0], [881, 0], [891, 0], [901, 0], [911, 0], [921, 0], [931, 0], [941, 0], [951, 0], [961, 0], [971, 0], [981, 0], [991, 0]]
[-10000, -10000]