I have been working with Python 3 for quite a while, however, I am new to CodeChef. I have tried to solve quite a few practice problems using CodeChef IDE. However, every time I try to run it, I get the following error.
Traceback (most recent call last):
File “./prog.py”, line 1, in
EOFError: EOF when reading a line
I try running the same code with custom input and it works perfectly. The first line of my code, where the error occurs is the following:
t = int(input())
- I have checked the version, and it is Python 3 only. Hence, there is no problem with input()
- The first line of input is a single integer, hence, converting the string into int should not be an issue. For more details, i am sharing the link to the problem as well which I am trying to solve.
I also tried the following:
In this case, the output was nothing. Can someone help me out with what the problem is actually?