This is for an online judge. I am trying to learn some Scala in the process.
The input format looks like
4
543534
6756
4564
363773
So the first line is n, and then the next n lines contain elements that need to go into a list.
Right now I read n by using readInt()
but I don't know how to then say "now read the next n lines and place everything into a list".
Try this: