As most have said. Think of your source code as a proof you solved the problem. They won't run it unless your case looks suspicious for some reason, if you submit code that generates the output for the given input, it's fine if it reads it directly or with redirection or whatever.
Carlos Guía On Tue, Apr 9, 2013 at 3:17 PM, Geet Thaker <[email protected]> wrote: > Hi > > I think, GCJ does not care much about your source code file, they are not > going to run your source code file. They only check your output file . > > Thanks, > Geet > > On Tue, Apr 9, 2013 at 2:09 PM, Babatunde Otaru > <[email protected]>wrote: > >> you have to put the file in the same folder with the code. >> >> >> On Tue, Apr 9, 2013 at 6:31 PM, João Víctor Rocon Maia < >> [email protected]> wrote: >> >>> Yes, look the solutions of other participants >>> https://code.google.com/codejam/contest/975485/scoreboard#vf=1 >>> >>> I prefer >>> >>> $ ./a.out < A-small.in > A-small.sol >>> >>> >>> On Tue, Apr 9, 2013 at 11:58 AM, Sann <[email protected]> wrote: >>> >>>> When I submit my code, do the code need to accept a file passed in >>>> through command-line argument or can it accept the file locally? >>>> >>>> Consider the following code- >>>> >>>> infile = open('A-small.in') >>>> ## do stuff. >>>> >>>> This code will work only if 'A-small.in' file is present where the >>>> code is ran. Command-line arguments to the file path will not work. >>>> >>>> Can I submit such code? >>>> >>>> -- >>>> 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/msg/google-code/-/QI_7ZXfivz4J. >>>> For more options, visit https://groups.google.com/groups/opt_out. >>>> >>>> >>>> >>> >>> >>> >>> -- >>> *João Víctor Rocon Maia* >>> www.joaovrmaia.com >>> >>> -- >>> 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]. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >>> >> >> -- >> 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]. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- > 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]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- 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]. For more options, visit https://groups.google.com/groups/opt_out.
