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 instructions kind of cheat. It says "put your answer in the editor" below. There is no editor "below" (there's on to the side). So I figured they must have meant the "custom input", since the program refused to accept an aswer when I tried doing a printf. But when I put an input into the custom input, it said I was wrong (I didn't see that you can't use 3/3 and 3/3 as valid outcomes). So I picked the correct answer, and still got an error. Finally decided to use both a custom input and a printf... and now it works.
So put your answer in the custom input and a printf.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Day 2: Basic Probability Puzzles #2
You are viewing a single comment's thread. Return to all comments →
The instructions kind of cheat. It says "put your answer in the editor" below. There is no editor "below" (there's on to the side). So I figured they must have meant the "custom input", since the program refused to accept an aswer when I tried doing a printf. But when I put an input into the custom input, it said I was wrong (I didn't see that you can't use 3/3 and 3/3 as valid outcomes). So I picked the correct answer, and still got an error. Finally decided to use both a custom input and a printf... and now it works.
So put your answer in the custom input and a printf.