← All problemsSign in

Expected Maximum Matching

CodeChefRating 2801Open on judge ↗

You are given two sets of vertexes U = {U[1], U[2], ..., U[N]} and V = {V[1], V[2], ..., V[M]}. All N + M vertexes here are different. You are also given the matrix P of size N x M composed of real numbers from the segment [0, 1]. The number that stands at the intersection of the ith row and the jth column of this matrix is denoted by P[i][j] and means the probability that the vertexes U[i] and V[

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start