def runq5(i, return_dict): start = clock() output = question05(i) end = clock() diff = end - start return_dict['output'] = output return_dict['diff'] = diff
def runq5(i, return_dict): start = clock() output = question05(i['allowedAllocations'], i['totalValue']) end = clock() diff = end - start return_dict['output'] = output return_dict['diff'] = diff
def runq5(q5input, return_dict): start = clock() i = json.loads(q5input.replace(" ", "")) output = question05(i) end = clock() diff = end - start return_dict['output'] = output return_dict['diff'] = diff