How does Codechef test whether my solution is correct or not?
Your code is tested by a computer automatically, not by a human being, and you have to write your code accordingly. For each problem, Codechef will have one or more input files, each according to the specifications mentioned in the problem statement, and corresponding correct output files. Codechef will run your program on each of the input files by redirecting the standard input stream to an input file, and the standard output stream to another file. The output generated by your program must match the correct output *exactly* in order to be judged correct. Some consequences of this: • If your program starts by printing ‘Enter the number’ and the problem does not tell you to do so, then since this is not part of the correct output, you will be never be judged correct regardless of what the rest of your program does. • As all that matters is that the output files match, it makes no difference at all at what point in your program’s execution that this output is written. So there is no ne
Related Questions
- When removing a paint sample in one piece, why must the sample be cut into smaller pieces before adding to the test solution in 1 bottle?
- Is it possible to test the solution Photopark Assistant for several months to check if it suits our organization?
- Can I use AQTESOLV to design an aquifer test (forward solution)?