Is you use double, then are you sorry that your answer is exact?

On Mon, May 10, 2010 at 1:10 AM, Abdelrhman Abotaleb <
[email protected]> wrote:

>
> I think it's related to the output format
> in c++ I'm casting the double to long integer so that the answer is exact
> without floating point or exponent
>
>
>
> On Sun, May 9, 2010 at 11:00 PM, Chethan B <[email protected]> wrote:
>
>> oops! I meant bear* with me :)
>>
>> On May 10, 1:57 am, Chethan B <[email protected]> wrote:
>> > Thanks Benetin. Thats mighty nice of you. That piece of info is really
>> > helpful.
>> > Now i just have to find out why i am getting the same  "Case #32:
>> > 1.46888007111242e+015" output when i try to run epsalon's code.
>> > Is it related to my machine configuration or my perl version or
>> > something? Bare with me if this is a stupid question.
>> >
>> > -Chethan
>> >
>> > On May 10, 1:47 am, benetin <[email protected]> wrote:
>> >
>> >
>> >
>> >
>> >
>> > > Hi Chethan,
>> >
>> > > I replied to the other thread, but don't know why it did not get
>> > > through:
>> > > - About your output, it is not exactly the same as the others. Here is
>> > > one line from your submission:
>> > > Case #32: 1.46888007111242e+015
>> > > This will not be accepted, since the problem is expecting the exact
>> > > answer, as epsalon's solution does.
>> > > - About the download Carlos mentioned: Enter the contest again with
>> > > your login, there will be a "My submissions" tab.
>> >
>> > > Hope this answers the questions.
>> >
>> > > Ben
>> >
>> > > On May 9, 4:32 pm, Chethan B <[email protected]> wrote:
>> >
>> > > > @Carlos: I would really like to do that, download my own submission
>> > > > and check if i have sent the right file... but the problem is, its
>> not
>> > > > available for download.. as i mentioned earlier, i had to do lots of
>> > > > optimization for large data and hence my source code for small data
>> is
>> > > > different from my source code for large data. My source code for
>> large
>> > > > data is not available for download. It simply says 1 wrong try.
>> > > > Is there some other way to check the file i have submitted?? Am i
>> > > > checking at wrong place??
>> > > > @All : I really really appreciate all your responses and i am sorry
>> if
>> > > > this is spamming. I am just trying out to find out where i could
>> have
>> > > > gone wrong or if there is any bug in validating source codes or
>> > > > outputs for large data set.
>> >
>> > > > On May 10, 1:23 am, Carlos Guia <[email protected]> wrote:
>> >
>> > > > > You can download your own submissions, and check if you did send
>> the right
>> > > > > file.
>> >
>> > > > > 64 bits are indeed needed.
>> >
>> > > > > Carlos Guía
>> >
>> > > > > On Sun, May 9, 2010 at 4:17 PM, Hassan . <[email protected]>
>> wrote:
>> > > > > > *i think you had same issue as me*
>> > > > > > *
>> > > > > > *
>> > > > > > *i use Int32 in C# to calculate the result *
>> > > > > > *i wasn't enough :)*
>> > > > > > *
>> > > > > > *
>> > > > > > *and as i did it, the compiler didn't warned me*
>> > > > > > *
>> > > > > > *
>> > > > > > *
>> > > > > > *
>> > > > > > *i rechecked that with int 64 and the result was correct.*
>> > > > > > *
>> > > > > > *
>> > > > > > On Sun, May 9, 2010 at 10:10 PM, Chethan B <
>> [email protected]> wrote:
>> >
>> > > > > >> @Felipe : Thanks for the link. That's pretty much what i have
>> done..
>> > > > > >> My code takes couple of seconds to process large data set.
>> >
>> > > > > >> On May 10, 12:17 am, Felipe Sodré Silva <[email protected]>
>> wrote:
>> > > > > >> >
>> http://code.google.com/codejam/contest/dashboard?c=433101#s=a&a=2
>> >
>> > > > > >> > On Sun, May 9, 2010 at 4:09 PM, Chethan B <
>> [email protected]> wrote:
>> > > > > >> > > Hi,
>> >
>> > > > > >> > > My source code for Problem C in qualification round GCJ
>> 2010 is
>> > > > > >> > > rejected for some unknown reason!
>> > > > > >> > > At the time of submission i got "submission successful"
>> message. Now,
>> > > > > >> > > i see ' 1 wrong try' message.
>> > > > > >> > > I have downloaded a correct source code written by
>> 'epsalon' (Rank
>> > > > > >> > > 2360) for large input data.
>> > > > > >> > > The output of epsalon's source code and that of my source
>> code match
>> > > > > >> > > exactly for the large input data that i got during the
>> competition.
>> > > > > >> > > So i believe that my source code must also be working fine.
>> Please
>> > > > > >> > > help me in understanding why my code was considered to be a
>> wrong one.
>> >
>> > > > > >> > > thanks,
>> > > > > >> > > Chethan B
>> >
>> > > > > >> > > --
>> > > > > >> > > 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]<google-code%[email protected]>
>> <google-code%2bunsubscr...@googlegr oups.com>
>> > > > > >> <google-code%2bunsubscr...@googlegr oups.com>
>> > > > > >> > > .
>> > > > > >> > > 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]<google-code%[email protected]>
>> <google-code%2bunsubscr...@googlegr oups.com>
>> > > > > >> .
>> > > > > >> > For more options, visit this group athttp://
>> > > > > >> 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]<google-code%[email protected]>
>> <google-code%2bunsubscr...@googlegr oups.com>
>> > > > > >> .
>> > > > > >> 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]<google-code%[email protected]>
>> <google-code%2bunsubscr...@googlegr oups.com>
>> > > > > > .
>> > > > > > 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]<google-code%[email protected]>
>> .
>> > > > > For more options, visit this group athttp://
>> 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]<google-code%[email protected]>
>> .
>> > > > For more options, visit this group athttp://
>> 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]<google-code%[email protected]>
>> .
>> > > For more options, visit this group athttp://
>> 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]<google-code%[email protected]>
>> .
>> > For more options, visit this group athttp://
>> 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]<google-code%[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]<google-code%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-code?hl=en.
>



-- 
Best regards, Дектярев Михаил

-- 
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.

Reply via email to