I think I’m going to go mad if I can’t solve this.
Really simple, how can I make the input stub generator read two lines in the same loop.
I want to generate the following code (python3):
for i in range(N):
a = input()
b = input()
Yet I can’t find a way to do it through the input stub generator. Using:
loop N read a:string(256) b:string(256)
throws me an error.
Does anyone know how to help me? (Or even if what I’m trying to do is even possible).
Perhaps I’m wrong, but I don’t think it is possible. If there’s no spaces in your strings you can put them both on the same line, otherwise you have to make two loop, or to think about a different input format…
Thanks, Blaise! I think you’re right though it would’ve saved me a lot of time if it said it anywhere in the docs, something along the lines of “NOTE: You cannot read more than one line per loop or something like that” would’ve been amazing.
In any case I was helping someone else who hadn’t provided an input generator stub for their puzzle and in the end I just changed all of the test cases’ format lol.