Closed dev-onejun closed 1 year ago
Wrong answer on test 4
According to the contest material, The test 4 is a corner case which requires to think all employees do not know any kinds of languages.
Before that, the number of edges which make the constructed graph connected was the only answer of the problem. However, the corner case should be handled separately. If no one had the languages to do, all employees(node) should learn. In other words, the number of nodes becomes the answer.
https://codeforces.com/problemset/problem/277/A