Implement the functionality to calculate the total deliciousness of cakes made by combining different types of cream and sponge. The deliciousness is determined by the product of the total taste scores of both creams and sponges.
Functional Requirements
Write a function named calculate_total_deliciousness that takes the following parameters:
N (int): The number of types of cream.
M (int): The number of types of sponge.
A (list of int): A list of integers representing the taste scores for each type of cream.
B (list of int): A list of integers representing the taste scores for each type of sponge.
The function should calculate the sum of the taste scores for the cream types (sum_A) and the sum of the taste scores for the sponge types (sum_B).
The total deliciousness is calculated as the product of sum_A and sum_B.
The function should return this total deliciousness as an integer.
Input/Output Requirements
Input: The function will receive:
An integer N (1 ≤ N ≤ 100), indicating the number of cream types.
An integer M (1 ≤ M ≤ 100), indicating the number of sponge types.
A list A of length N, where each element is an integer representing the taste of each cream (1 ≤ A[i] ≤ 100).
A list B of length M, where each element is an integer representing the taste of each sponge (1 ≤ B[i] ≤ 100).
Output: The function should return an integer representing the total deliciousness of the cakes.
Implementation File
The solution must be written in a file called /app/solution.py.