A lot of people won't read fro a file and write to a file, they will read
from stdin, write to stdout, and run their program like this:

program < a.in > a.out

taking advantage of stream redirection.

On Fri, 8 Apr 2016 at 19:04 'Pablo Heiber' via Google Code Jam <
[email protected]> wrote:

> Hi,
>
> Every problem has an input file with some test cases and you need to
> produce an output file for it. You can decide the best way to do that: one
> program, several programs, using R, editing the contents manually, or a
> combination.
>
> See this: https://code.google.com/codejam/faq.html#5-3
>
> Having a single program that reads the input and produces the output is a
> popular choice in many languages (including Java), like mentioned in our
> tutorial: https://code.google.com/codejam/tutorials.html. However, you
> can choose to do it in the way you think it is best for you for each
> problem.
>
> Best,
> Pablo, on behalf of the Google Code Jam team
>
> On Fri, Apr 8, 2016 at 10:59 AM, Anusha Swaminathan <[email protected]>
> wrote:
>
>> Is it necessary to read and write into a file for all the programs?
>> Because when I download solutions of previous competitions, I find this
>> being done for many problems. Pls clarify if it is necessary. I will prefer
>> coding in Java.
>>
>> --
>> 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/d0319957-740f-4e29-9c16-f9328c316807%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/CANa5jcDy1XcGsGEpAYFc1ves7e061rXOQC8Vbz0vViUWrujahg%40mail.gmail.com
> <https://groups.google.com/d/msgid/google-code/CANa5jcDy1XcGsGEpAYFc1ves7e061rXOQC8Vbz0vViUWrujahg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> 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/CAJej63Lt74MbG1X_Y4JKBBN5Z_Vmnnw9WELU5iMxMcUu%2B9qU8A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to