They may use input redirection, this will convert reading from stdinput to reading from the redirected file this way from a bash shell for example.
./a.out < file.in Thanks, Hussein On Mon, Apr 30, 2012 at 11:16 PM, Makandriaco <[email protected]> wrote: > OK, first of all I solved my error and the solution is OK now, but > Hate to sound stupid, but I have little experience with Java or Python > or C, so I am having some problems running the solutions. Maybe you > can explain how do contestants pass the file to the code when there is > no declaration of a file and the main only starts with a > > int main() { > int T > scanf("%d",&T); > > getting the number of test cases > > > On Apr 28, 4:35 pm, Paul Smith <[email protected]> wrote: >> Download a correct solution, run it on the same input, compare their output >> with yours. >> >> >> >> >> >> On Thursday, April 19, 2012, Makandriaco wrote: >> > Can someone post or send me the correct output file for this problem? >> > I have gone solving by hand the first few cases and they all are >> > correct for my solution. But there are too many to do them all and I >> > would like to see the case that got me the incorrect so I can trace >> > the error. >> > This is just for practice. >> > Please? >> > thanks >> >> > -- >> > You received this message because you are subscribed to the Google Groups >> > "Google Code Jam" group. >> > To post to this group, send email to >> > [email protected]<javascript:;> >> > . >> > To unsubscribe from this group, send email to >> > [email protected] <javascript:;>. >> > For more options, visit this group at >> >http://groups.google.com/group/google-code?hl=en. >> >> -- >> Paul Smith >> >> [email protected] > > -- > You received this message because you are subscribed to the Google Groups > "Google Code Jam" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-code?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google Code Jam" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-code?hl=en.
