|
|
|
@ -47,8 +47,20 @@ def parseInput():
|
|
|
|
|
|
|
|
|
|
return videoCount, endpointCount, cacheCount, videoSizes, endpointDatacenterLatencies, endpointCacheLatencies, requestDescriptions
|
|
|
|
|
|
|
|
|
|
def printOutput(caches):
|
|
|
|
|
print(len(caches))
|
|
|
|
|
|
|
|
|
|
for cacheId, cacheVideos in caches.items():
|
|
|
|
|
print(" ".join(str (i) for i in [cacheId] + cacheVideos))
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
|
videoCount, endpointCount, cacheCount, videoSizes, endpointDatacenterLatencies, endpointCacheLatencies, requestDescriptions = parseInput()
|
|
|
|
|
|
|
|
|
|
# TODO: everything
|
|
|
|
|
#caches[0] = [1, 2, 3]
|
|
|
|
|
#caches[2] = [1, 2, 3]
|
|
|
|
|
|
|
|
|
|
printOutput(caches)
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
|
main()
|
|
|
|
|