What's wrong with this problem? It seems to have an error in sample output (first test case answer is clearly 5)
Does S have to be connected?
Is the sample input wrong? If so, are the judge's test cases correct?
Moderator: Board moderators
Users browsing this forum: No registered users and 1 guest