Search found 3 matches

by FlareCDE
Wed Apr 23, 2003 10:36 pm
Forum: Volume 103 (10300-10399)
Topic: 10310 - Dog and Gopher
Replies: 47
Views: 17431

A few things I noticed. You need to check for equals, as posted above. Doubles seem to help, my floats gave me WA. Another big thing is to watch for integer division in c++. dogDist/2 gives a WA, but dogDist/2.0 does not :). Be careful there, this one is simple but a few minor programming nuances ca...
by FlareCDE
Wed Apr 09, 2003 10:07 pm
Forum: Volume 8 (800-899)
Topic: 861 - Little Bishops
Replies: 33
Views: 20562

861 - Little Bishops

I'm getting a time out, and for the life of me, cannot figure out why. I rigged the program so it loops through every possible input the judge can give according to the book I have (1x1 to 8x8 board with up to 64 bishops), and it easily completes on my computer in under a second or two with all inpu...
by FlareCDE
Fri Mar 21, 2003 6:33 pm
Forum: Volume 100 (10000-10099)
Topic: 10006 - Carmichael Numbers
Replies: 66
Views: 20830

What language are you using? I have heard of a lot of people having problems with Java, even hard coding it (cheating :) ). I used C++ and it was a lot swifter.

And thanks to this thread I finally got it, dunno why I didn't think of changing all my ints to unsigned in the first place.

Go to advanced search