Untitled
unknown
plain_text
a year ago
432 B
2
Indexable
Never
mockInput = """5 -3 1 0 4 2 0 -4 3 -3 1 0 4 2 0 4 -1 -3 1 0 4 -3 1 1 5 -3 1 -3 1 -3 1 2 5 0 1 0 4 1 1 1 4""" def mockDCSOJInput(input): inputs = input.splitlines() currentIndex = 0 while currentIndex < len(inputs): yield inputs[currentIndex] currentIndex += 1 testInputs = mockDCSOJInput(mockInput) nextInput = lambda : next(testInputs) print(nextInput()) print(nextInput())