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
Read from file(s) and/or stdin:
import fileinput for line in fileinput.input(): process(line)