In programming contests like Google CodeJam, Facebook Hacker Cup, each question is provided with an input file for testing one’s code for that program. I get struck at this point only.
I don’t understand whether that input file should be read by my program or it is just for testing the correctness of my program for various test cases given in that input file and I can copy past each test case given in the input file one by one manually and see whether the output provided by my program is right or wrong.
It would be very helpful for me if anyone who has been actively participating in such competitive contests can share their views.
1
You need to write code to read that file. When you submit your program, it will be tested against other unpublished data files in the same format.
0