M - Matrix Operations

Languages: C, C++, Java, Python, Kotlin
Time & Memory limits: (details)

Input

Output

Sample test(s)

Input
3 4 5 1 2 3 4 5 6 7 8 9 10 11 12 3 2 2 1 2 3 2 2 2 4 3 2 4
--- Showing first 30 lines (click "Copy" to get full content) ---
Output
6 7 5
--- Showing first 30 lines (click "Copy" to get full content) ---