• + 0 comments

    Python easiest solution: def solve(n, m): return m*n-1 For understanding try comparing the values as bigger and smaller and multiply them.