• + 3 comments

    Compiler Message: Wrong Answer

    Input (stdin) 1 5 3 6 1 1 2 1 3 1 4 Your Output (stdout) 9

    Any ideas why my answer is wrong? 4 cities in one aglomeration, cost of library 6 and cost of road 1. It's simply one library (6) and 3 roads (3) what all gives 9. Do I misunderstand something, or hackerrank has a bug?