better make it double....

On Tue, Mar 9, 2010 at 1:49 AM, Ken Corbin <[email protected]> wrote:

> Hello,
>
> There are several reasons why the same code C/C++ might execute differently
> on
> different processors.  The most probable is that the size of int variables
> can vary from 16, 32, or 64 bits.  I'd try declaring all of your int
> variables as long and see if that makes a difference.
>
> Good luck,
> -Ken
>
> On Sunday 07 March 2010 12:31:23 Stephan09 wrote:
> > Hello!
> >
> > I was practicing with some old problems and tried to solve the Center
> > of Mass Problem of Round 1C - B in 2009.
> > I correctly understand the solution and the winning c++ codes. But
> > when I compile the winning codes on my pc and calculate the solutions
> > for the practice input, I allways get that the submitted solution is
> > incorrect.
> >
> > Does anyone know how that can be? I didnt change any of the code. Is
> > it possible that, when using c++, the calculated values depend on the
> > processor in use?
> > Thus, is it possible that one has to write different c++ codes for
> > different processors?
> >
> > Thanx a lot!
> > Stephan
>
>
>
> --
> 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].
For more options, visit this group at 
http://groups.google.com/group/google-code?hl=en.

Reply via email to