Implement a function calculate_participant_scores that calculates the total scores of participants based on their performance in multiple test cases. Each test case consists of a number of participants, the number of problems, a list of points corresponding to each problem, and a list of verdicts (submissions) for each participant indicating whether they solved each problem.
Input Requirements
The function accepts two parameters:
T (int): The number of test cases.
test_cases (list of tuples): A list where each tuple represents a test case containing:
N (int): The number of participants.
K (int): The number of problems.
points (list of int): A list of integers where each integer represents the points awarded for solving corresponding problems.
verdicts (list of strings): A list of strings where each string has length K consisting of characters '0' and '1'. Each character represents the verdict for a problem: '1' indicates the participant solved the problem, and '0' indicates they did not.
Output Requirements
The function returns a list of lists where each inner list corresponds to a test case and contains the total scores of each participant.
Implementation Guidelines
Create a file named /app/solution.py.
Ensure that the implementation matches the provided function signature exactly.
The calculated scores should be stored in the order of participants for each test case.