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.
Why not test on your machine? If you do, there are at least 3 things you can do: 1) You can paste to stdin source; 2) Redirect stdin so your program gets data from a file; or 3) Write your program so it can get input from either stdin or from a file.
In case you are not familiar with redirection, in general, redirection uses " < " in a command line:
foo < bar.txt
This tells the program "foo" to use "bar.txt" for stdin.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
The Grid Search
You are viewing a single comment's thread. Return to all comments →
Why not test on your machine? If you do, there are at least 3 things you can do: 1) You can paste to stdin source; 2) Redirect stdin so your program gets data from a file; or 3) Write your program so it can get input from either stdin or from a file.
In case you are not familiar with redirection, in general, redirection uses " < " in a command line:
foo < bar.txt
This tells the program "foo" to use "bar.txt" for stdin.