Why does my Python program give run time error on Kattis interpreter?
Solution 1:
I think the problem is that the input data is not obtained with the input() function as you're doing. You should read the standard input, like so:
for i in sys.stdin:
ab = i.split()
a = int(ab[0])
b = int(ab[1])
# Solve the test case and output the answer
Kattis documentation on Python3