POJ 1087 - A Plug for UNIX
Problem : M receptacles, N devices (each need a specific receptacle type), K types fo adapters. Give the maximum match for N-M.
Solution : The problem is only the module test for highest-relabel.