Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class IntcodeComputerKeyboardInput:
- def read(self):
- return input()
- class IntcodeComputerRawInput:
- def __init__(self, inputs):
- self.inputs = inputs
- self.p = 0
- def read(self):
- result = self.inputs[self.p]
- self.p += 1
- return result
- class IntcodeComputerQueueInput:
- def __init__(self, queue):
- self.queue = queue
- def read(self):
- return self.queue.get()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement