Search found 6 matches

by toomyem
Mon Jun 14, 2004 5:28 pm
Forum: Volume 6 (600-699)
Topic: 671 - Spell checker
Replies: 27
Views: 10393

Hey, I used different algorithm but also got WA. Have no idea what can be wrong. I tested a lot of different input data and for me it works. Don't know why I'm getting WA.
by toomyem
Tue Jun 11, 2002 12:49 pm
Forum: Volume 102 (10200-10299)
Topic: 10239 - The Book-shelver's Problem
Replies: 14
Views: 5032

Oh, my stupidity :o Of course, now I know! I have to be more careful when solving next problems.

thanx,
tomekM
by toomyem
Tue Jun 11, 2002 11:32 am
Forum: Volume 102 (10200-10299)
Topic: 10239 - The Book-shelver's Problem
Replies: 14
Views: 5032

Unfortunately your proposal didn't help. Still got WA. I have no idea, what to do about this. Mayby someone can send me some tricky input data which is sensitive for rounding problem. It could help me to verify what's wrong.

regards,
tomekM
by toomyem
Thu Jun 06, 2002 1:36 pm
Forum: Volume 102 (10200-10299)
Topic: 10239 - The Book-shelver's Problem
Replies: 14
Views: 5032

What is wrong with this solution? I have no idea :-( [c] #include <stdio.h> int main() { double _sw, _w, _h; long int sw, w, h; int n, i; long int cw, mh, sh; while( scanf( "%d %lf", &n, &_sw ) && n > 0 ) { sw = _sw * 10000; cw = 0; mh = 0; sh = 0; for( i = 0; i < n; ++i ) { scanf( "%lf %lf", &_h, &...
by toomyem
Thu Jun 06, 2002 1:23 pm
Forum: Volume 102 (10200-10299)
Topic: 10239 - The Book-shelver's Problem
Replies: 14
Views: 5032

But how can I display the result without using float numbers ?
by toomyem
Tue Jun 04, 2002 5:52 pm
Forum: Volume 3 (300-399)
Topic: 355 - The Bases Are Loaded
Replies: 74
Views: 23006

355 - The Bases Are Loaded

Hi,

What is the trick for this problem. I'm correctly converting numbers. I'm handling zero and vegative numbers. And still Wrong Answer I receive.

BTW: for line 2 10 -0 output should be
-0 base 2 = -0 base 10
or
-0 base 2 = 0 base 10

thanx,
tomekM

Go to advanced search