Problems with tag O(N * m * n)