Hi, In a nutshell, I guess most people are not copy/pasting the input but redirecting stdin to read from a file.
You can redirect files to the standard input by using " < filename" after your execution line. Similarly, you can use " > filename" to have the output written to a file instead of to the console. This is a good way to avoid naming the files in your code, and switch easily between outputting to the console or to a file depending on whether you are running on samples to test/debug or on an input file to submit. We will have a tutorial with a more complete description on this in codejam's site soon. Stay tuned! Best, Pablo On Wed, Mar 16, 2016 at 5:15 AM, kunal kotiyal <[email protected]> wrote: > I have seen some source files of Google code jam , many peoples are not > reading from files i.e they are coping and pasting I/p to the console and > doing same with o/p file. Is it faster than working with files. > I mean they are using simply cin>>a instead of f>>a. > Which method is faster? > > -- > You received this message because you are subscribed to the Google Groups > "Google Code Jam" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/google-code/7d5e528e-6958-4ff9-9800-d3f7ce2a0295%40googlegroups.com > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Google Code Jam" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-code/CANa5jcAH7yO5AP%2BAZdxKyJTTHnutw7_iHH2Fa%2B874FNdESEy%3DQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
