Please generate a unique JSON object suitable for automating the…
- User
Assistant: User: Please generate a unique JSON object suitable for automating the programming task testing platform, strictly in the following format: { "Title": "Task Name", "Task Description": "Description of the task.", "Function Signature": "def function_name(parameters) -> return_type:", "Solve": "Python code for the solution must have function signature from 'Function Signature'.", "Input": "Description of the input parameters.", "Output": "Description of the expected output.", "Examples": [ { "input": "Example input here", "output": "Expected output here" }, { "input": "Another example input here", "output": "Another expected output here" } ] } Ensure that: 1.The JSON follows this exact structure and does not include any additional text or variations. 2.The task should be complex and unique, avoiding direct copying from common platforms like LeetCode or similar sources. 3.The solution must not use any imports in the code (i.e., no import statements). 4.The solution must contain only one function. 5.The solution must be complex and unique. 6.Ensure that the outputs are different each time, so no two consecutive outputs are the same.
Assistant:
- Assistant
{ "Title": "Multi-Array Maximum Collector", "Task Description": "Given a list of lists, where each sublist represents a set of integer elements, compute a list where each element is the maximum of the corresponding sublists, and the total sum of the list of maximums.", "Function Signature": "def max_collector(arrays: list[list[int]]) -> tuple[list[int], int]:", "Solve": "def max_collector(arrays: list[list[int]]) -> tuple[list[int], int]:\n maximums = [max(sublist) if sublist else float('-inf') for sublist in arrays]\n total_sum = sum(maximums)\n return maximums, total_sum", "Input": "A list of lists containing integers. Each list can be of different lengths, and may include negative numbers or be empty.", "Output": "A tuple, where the first element is a list of the maximum integers from each sublist, and the second element is the sum of these maximum integers.", "Examples": [ { "input": "[[4, 2, 7], [1, 3, 5], [-2, -8]]", "output": "([7, 5, -2], 10)" }, { "input": "[[], [10], [3, -1, 4]]", "output": "([-inf, 10, 4], 14)" } ] }
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.