We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
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?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Roads and Libraries
You are viewing a single comment's thread. Return to all 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?