Implement a function max_scc_groups that calculates the maximum number of Scc groups that can be formed given a certain number of pieces. An Scc group requires two c-shaped pieces and can also utilize remaining pieces in groups of four.
Function Signature
python
def max_scc_groups(n: int, m: int) -> int:
Parameters
n (int): The number of available Scc groups. It represents the maximum number of complete groups that can be formed.
m (int): The total number of c-shaped pieces available.
Return Value
Returns an integer representing the maximum number of Scc groups that can be formed with the given pieces.
Input/Output Requirements
Input: Two integers n and m, where n is the number of groups possible and m is the total number of c-shaped pieces available.
Output: An integer that is the sum of the initial Scc groups that can be formed using pairs of pieces and any additional groups formed using the remaining pieces.
Implementation
Your implementation should be done in a file named /app/solution.py. Make sure to test your function with various input scenarios to ensure its correctness. Here are a few examples for testing:
max_scc_groups(5, 10) should return 5
max_scc_groups(3, 8) should return 4
max_scc_groups(10, 15) should return 7
Constraints
0 <= n <= 10^5
0 <= m <= 10^5
Ensure the function handles edge cases such as when no pieces are available.