Output: Part 1
This commit is contained in:
parent
260cd9a69a
commit
28bfb3b7e6
12
main.py
12
main.py
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue