I\'m participating in online judge contests and I want to test my code with a .in file full of testcases to time my algorithm. How can I get my script to take input from this .i
So the script normally takes test cases from stdin, and now you want to test using test cases from a file?
If that is the case, use the < redirection operation on the cmd line:
<
my_script < testcases.in