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.
The exact solution I have posted above works in Java 8. If your code is not working, try to compare it to what I did to see if you missed any crucial steps. Remember to get rid of the pesky newline after reading in the double as mentioned in my code.
Java Stdin and Stdout II
You are viewing a single comment's thread. Return to all comments →
The exact solution I have posted above works in Java 8. If your code is not working, try to compare it to what I did to see if you missed any crucial steps. Remember to get rid of the pesky newline after reading in the double as mentioned in my code.
HackerRank solutions.