I wrote the following Python code to input the problem. I keep getting the error as in the title. When I copy sample input on my machine, the code runs and gives result. Please help me how I can correct this. All my codes are getting runtime errors.
cases = input()
l = []
for i in range(int(cases)):
l.append(input())
for a in l:
time = int(a.strip().split()[0])
t1 = int(a.strip().split()[1])
t2 = int(a.strip().split()[2])