Search found 374 matches

by Sedefcho
Fri Jan 28, 2005 4:01 pm
Forum: Volume 102 (10200-10299)
Topic: 10200 - Prime Time
Replies: 202
Views: 60988

Well, what could be wrong then ?!

Could it be related to some stupid
boundary case ?

Or to the fact that my program is written in Java?!
by Sedefcho
Fri Jan 28, 2005 3:33 pm
Forum: Volume 102 (10200-10299)
Topic: 10200 - Prime Time
Replies: 202
Views: 60988

10200 - Algorithm is correct ?! Why WA?!

Input: 0 10000 40 40 1 10000 1 9999 0 9999 551 1807 3957 8978 2784 8208 8138 9707 3965 8178 843 8651 6055 9655 6399 8052 7362 8656 742 1185 2145 6359 3607 8999 6423 9662 5536 8242 1294 4157 32 99 932 4566 6155 7063 2196 5454 894 7486 8169 9119 9498 9894 2091 3582 7027 8695 164 9213 3814 8954 1810 35...
by Sedefcho
Fri Jan 28, 2005 2:36 pm
Forum: Volume 102 (10200-10299)
Topic: 10200 - Prime Time
Replies: 202
Views: 60988

Hi, Minilek ! I cover all your test cases. And my algorithm is fast enough ( I have no problem with that ). I continue getting WA. I see you round the numbers ( the percentages ) as follows: 33.675 -> 33.68 33.674 -> 33.67 33.676 -> 33.68 Is this what the Online Judge expects ? I mean are you sure i...
by Sedefcho
Fri Jan 28, 2005 2:22 pm
Forum: Volume 102 (10200-10299)
Topic: 10200 - Prime Time
Replies: 202
Views: 60988

Can somebody give any test cases.

How should we round the percentages ( the answers ).
If we have
37.568% should we print 37.56 or 37.57
by Sedefcho
Thu Jan 27, 2005 7:48 pm
Forum: Volume 100 (10000-10099)
Topic: 10062 - Tell me the frequencies!
Replies: 235
Views: 36358

But still I get WA. Here is my JAVA code: ============================================= class Main { public static void main(String[] args){ String line = null; int[] frequencies_arr = null; char[] chars_arr = null; while ( (line = readLn(1005)) != null ){ frequencies_arr = new int[96]; chars_arr = ...
by Sedefcho
Thu Jan 27, 2005 7:47 pm
Forum: Volume 100 (10000-10099)
Topic: 10062 - Tell me the frequencies!
Replies: 235
Views: 36358

I cover the test cases above and my program seems quite
simple. I haven't tried to achive efficiency. Just to make sure
the algorithm is logically correct.
But it seems it is not.

The program is in JAVA.
by Sedefcho
Wed Jan 26, 2005 11:51 pm
Forum: Volume 102 (10200-10299)
Topic: 10213 - How Many Pieces of Land ?
Replies: 54
Views: 22645

sohel,

There's something strage in your output - the first line
( the output for input == 10 )
is missing.

I hope this is just a copy-paste error.

Otherwise it would be some bug.
by Sedefcho
Wed Jan 26, 2005 6:22 pm
Forum: Volume 6 (600-699)
Topic: 608 - Counterfeit Dollar
Replies: 19
Views: 8146

No, there're no empty lines in the tests used by Online Judge.
I've commented out the code which expects an empty
line between the different test cases and now the Online
Judge says "Accepted".
by Sedefcho
Wed Jan 26, 2005 6:20 pm
Forum: Volume 6 (600-699)
Topic: 608 - Counterfeit Dollar
Replies: 19
Views: 8146

Well, my JAVA program covers these test cases.

But still I get Wrong Answer after the program runs for
3.951 secs.

Are sure for example that there're empty lines between
the different test cases.
by Sedefcho
Tue Jan 25, 2005 2:12 pm
Forum: Volume 102 (10200-10299)
Topic: 10268 - 498-bis
Replies: 51
Views: 17352

I think the tests of this Problem 10268 are quite strange.
I am sure my algorithm is OK, I have tried using double, long,
int, BigInt ( custom class written by me ).

And none of them works. It keeps saying wrong answer.

I need some decent tests to check my program agains them.

Can anyone help ?
by Sedefcho
Tue Jan 25, 2005 2:11 pm
Forum: Volume 102 (10200-10299)
Topic: 10268 - 498-bis
Replies: 51
Views: 17352

I think the tests of this Problem 10268 are quite strange.
I am sure my algorithm is OK, I have tried using double, long,
int, BigInt ( custom class written by me ).

And none of them works. It keeps saying wrong answer.

I need some decent tests to check my program agains them.

Can anyone help ?
by Sedefcho
Tue Jan 25, 2005 12:43 pm
Forum: Volume 102 (10200-10299)
Topic: 10268 - 498-bis
Replies: 51
Views: 17352

To: Alexander Denisjuk The formula you've given for (X-7)^10 is not correct. The term in front of X^3 should be at least negative. Can you give the correct formula or some other tests. I am sure everything is OK ( logically ) with my program but apparently there're some boundary cases which cause pr...
by Sedefcho
Sun Jan 16, 2005 11:36 pm
Forum: Volume 100 (10000-10099)
Topic: 10002 - Center of Masses
Replies: 59
Views: 26356

By the way even using your formulas I can not get the answer that the author of the problem has given for the test case: 7 -4 -4 -6 -3 -4 -10 -7 -12 -9 -8 -3 -6 -8 -3 Obviously 1) either the author of the problem has a different idea about center of masses OR 2) there is some small mistake in your f...
by Sedefcho
Sun Jan 16, 2005 11:33 pm
Forum: Volume 100 (10000-10099)
Topic: 10002 - Center of Masses
Replies: 59
Views: 26356

Isn't the center of masses simply the point (Cx,Cy) where Cx = ( Sum ( x , i = 0,1,..,N ) ) DIV N; Cy = ( Sum ( y , i = 0,1,..,N ) ) DIV N; By DIV I mean normal division floating point division. That was my impression for center of masses. What are the formulas you are giving above? Can you point me...

Go to advanced search