Когда я отправляю этот файл в Kattis, я получаю Run Time Error
без дальнейших объяснений.Это кажется достаточно простым кодом, но, может быть, я просто что-то упустил.
Он работает на моем интерпретаторе python 3.Почему это не работает на Каттис?(или, возможно, другой переводчик)
Проблема: https://open.kattis.com/problems/babelfish
dictionary = dict()
userInput = input()
while userInput != "":
buf = userInput.split()
english = buf[0]
foreign = buf[1]
dictionary[foreign] = english
userInput = input()
userInput = input()
while userInput != "":
if userInput in dictionary:
print(dictionary.get(userInput))
else:
print("eh")
userInput = input()