Facing issue in Python3.6 compiler

I am facing a problem that I can’t be able to take input in any of python
program even it is submitted previously by other user successfully.
code :
T = int(input())
for tc in range(T):
(a, b) = map(int, input().split(’ '))
ans = a + b

while using custom input ,it is running successfully but in test cases, It
is showing following error:-
Runtime Error :

Traceback (most recent call last):
File “./prog.py”, line 5, in
EOFError: EOF when reading a line

My codechef coding test is on 25th july 2019 in my institute,but due to
this problem my practice is totally stopped. Please help me to resolve this

You can use This

for t in range (int(input())):
   a,b = map(int,input().split())