You are viewing a single comment's thread. Return to all comments →
Had the same problem and adapted this from @saltybald below:
val n = io.Source.stdin.getLines.toList.map(.trim).map(.toInt).head
Not sure what is going on here, but it worked!
Seems like cookies are disabled on this browser, please enable them to open this website
Pascal's Triangle
You are viewing a single comment's thread. Return to all comments →
Had the same problem and adapted this from @saltybald below:
val n = io.Source.stdin.getLines.toList.map(.trim).map(.toInt).head
Not sure what is going on here, but it worked!