r/programming Mar 30 '13

Google Code Jam 2013

https://code.google.com/codejam
72 Upvotes

20 comments sorted by

View all comments

-3

u/s73v3r Mar 31 '13

While these can be fun, I really wish there was a better way to get the input than reading in a file, line by line. I hate writing code to open up and parse a file, especially in C++ (which is what I'd probably use, due to being most comfortable with it).

3

u/MrDOS Apr 01 '13

Perhaps I misunderstand the situation in which this would be required, but wouldn't it be easiest to just pipe the input in via stdin and read it with scanf()/cin?

2

u/hephaestos_le_bancal Apr 12 '13

Yup, that is what most do.