On reading faqs i have seen the following:
How should I test my program?
The best way of testing your program is doing so in exactly the same way that Codechef does. Create an input file (for example, in.txt). Then run your program from the command line, using < and > to redirect the streams. For example:
java test < in.txt > out.txt
or
test.exe < in.txt > out.txt
Your output will then be in the out.txt file, so you can check if it is correct.
Often people forget to print a new line between test cases, but this is easily avoided if you use this method of testing.
HOW TO DO THIS IN PYTHON??? Please Help…