File "./prog.py", line 1, in <module> EOFError: EOF when reading a line

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])

Give some input to the python program.

1 Like

I do not get the error when I input the sample input using custom testcases.

1 Like

return
thank u
thank u
thank u