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.
Edit: Solved it. HackerRank input must have changed. It just ends on an EOF. If you're using this FastScanner, you'll need to add to the end of token case with:
if(bufferSize < 0 || c == (byte)'\n' || c =
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Dijkstra: Shortest Reach 2
You are viewing a single comment's thread. Return to all comments →
How did you get this to work? I'm using Java 8 but FastScanner from https://github.com/jackyliao123/contest-programming/blob/master/Utils/FastScanner.java causes the "run code" to timeout? Which one did you use?
Edit: Solved it. HackerRank input must have changed. It just ends on an EOF. If you're using this FastScanner, you'll need to add to the end of token case with:
if(bufferSize < 0 || c == (byte)'\n' || c =