When they say 1 < N < 100, you can assume that's true. They can, as humans, make a mistake. In that case you should report it as soon as you realize the dataset is invalid. However, this is rather rare since they have more than one person testing problems, so it's better strategy to assume the input is valid (complies with constrains) than spend precious time trying to be super robust and catch very rare input errors. Nevertheless, if something is not stated clearly, you should make no assumptions, i. e., if they say a number of points, I advise against assuming coordinates are integers unless specified in the statement, even if all examples are integers.
Carlos Guía On Wed, Apr 13, 2011 at 5:33 PM, Julien Dubois <[email protected]>wrote: > No, your code should not take these exacts limits into account. > They are rather indications of how big the datasets should be, so that you > can ensure your program will be fast enough to process the small dataset in > less than 4 minutes and the large dataset in less than 8 minutes. > > Please correct me guys, if I am missing a point ;) > > Julien > > > > 2011/4/13 vineet pant <[email protected]> > >> I have read sample problems given in the code jam, there are some >> limits applied to data like no of test cases N will be 10<N<100 . Do >> we have to check for these constraints in our code?? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "google-codejam" 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-codejam" 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-codejam" 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.
