Search found 5 matches

by Stas
Sun Nov 07, 2004 8:27 am
Forum: Volume 1 (100-199)
Topic: 143 - Orchard Trees
Replies: 90
Views: 12400

rounding errors

Try to change 'double' to 'long double'.
First I soved this problem on Pascal, but got wa.
Then I have translated to cpp and got AC.
by Stas
Sat Aug 28, 2004 6:08 pm
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 38121

Check your mailbox :) there are a lot of "comile error" replays from judge!
by Stas
Sat Aug 28, 2004 5:58 pm
Forum: Volume 1 (100-199)
Topic: 128 - Software CRC
Replies: 62
Views: 7370

Hi, you can verify the example data like this: m = "A" = 65 decimal = 0100 0001 "2" = 0x0C86 = "0000 1100 1000 0110" g = 34943 decimal = 1000 1000 0111 1111 The CRC value is chosen so that ``m2'' when divided by a certain 16-bit value ``g'' leaves a remainder of 0. so, 0100 0001(m) 0000 1100 1000 01...
by Stas
Sat Jul 03, 2004 6:22 pm
Forum: Volume 1 (100-199)
Topic: 107 - The Cat in the Hat
Replies: 278
Views: 20012

at last i got ac!

sory for my english :)

my program had a problem with comparing 2 real type variables.
the solution is
abs(a-b)<0.00000001 or something like that.
I hope this will help.
by Stas
Sat Jul 03, 2004 6:09 pm
Forum: Volume 1 (100-199)
Topic: 108 - Maximum Sum
Replies: 233
Views: 22416

huh

I solved this problem in using n^4 alhorytm with some optimization. 8sec :) pascal

Go to advanced search