Search found 155 matches

by tan_Yui
Tue Jan 03, 2006 7:00 pm
Forum: Volume 1 (100-199)
Topic: 190 - Circle Through Three Points
Replies: 126
Views: 19665

Re: division by zero

Thanks! Any clue on how avoiding division by zero in this case? I tried to add very small vlaues in the denominators of the fractions (like 0.000000001 or something) but it changes the output... Try the following case. In current your code, if (p2.x - p1.x == 0.000) or (p3.x - p2.x == 0.000) or (mb...
by tan_Yui
Tue Jan 03, 2006 6:26 pm
Forum: Volume 1 (100-199)
Topic: 190 - Circle Through Three Points
Replies: 126
Views: 19665

I think both +0.000 and -0.000 will be accepted.
by tan_Yui
Tue Jan 03, 2006 6:20 pm
Forum: Volume 1 (100-199)
Topic: 190 - Circle Through Three Points
Replies: 126
Views: 19665

Re: 190-Circle Through Three points -WA-Already read past po

My AC code prints same output as yours.
I think, the bugs of your code is the part of division.
In some parts, your code is in danger of the division by zero.
Parameters; ma, mb, h; are faced with this problem.

Best regards.
by tan_Yui
Tue Jan 03, 2006 9:09 am
Forum: Volume 100 (10000-10099)
Topic: 10014 - Simple calculations
Replies: 34
Views: 8423

Re: 10014 Run Time Error

Your recursive function cannot work if n>1.
Then the function continues infinitely, so the judge said RE.

Best regards.
by tan_Yui
Tue Jan 03, 2006 8:21 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 181801

plz sm1 compile n run this code on ur system n tell me whats wrong gettin WA... but its running on my system (using dev c++)... this is my first ACM problem ..heavent submitted any prob before tried to submit it more than 10 times .. initially it was CE now im getting WA plz help Read my previous p...
by tan_Yui
Fri Dec 30, 2005 5:23 pm
Forum: Volume 109 (10900-10999)
Topic: 10980 - Lowest Price in Town
Replies: 28
Views: 11346

Hi, Darko. Although your idea uses mathematical methods in some part, my idea is DP solution like knapsack. This DP is same as Ivan's one, probably. If your algorithm are correct and got WA, your code may be included any small bugs. By the way, I also prepare the I/O. 50.00 3 2 22.00 4 60.00 6 18.00...
by tan_Yui
Fri Dec 30, 2005 10:04 am
Forum: Volume 109 (10900-10999)
Topic: 10977 - Enchanted Forest
Replies: 42
Views: 17630

Thanks, Darko and Observer.
Finally, I could get Accepted :D

My WA code was failed because I've ignored about 'Euclidean distance'.
I vaguely understood this until now.
I am glad to obtain this knowledge.

Best regards.
by tan_Yui
Fri Dec 30, 2005 7:44 am
Forum: Volume 109 (10900-10999)
Topic: 10977 - Enchanted Forest
Replies: 42
Views: 17630

the total area blocked by jigglipuff is circular area. you have to find very carefully the intersections she blocked. I got WA. I may be misunderstanding about the dangerous area covered by Jigglypuff. Then, I make a following test case. Is my idea wrong? 10 10 4 1 5 2 3 4 1 8 10 4 3 2 0 5 6 3 10 1...
by tan_Yui
Thu Dec 29, 2005 7:31 am
Forum: Other words
Topic: Copyright of image
Replies: 7
Views: 4176

It is preferable to send the written apology with the progress of current matter to the writer, regardless of what decision will be done. Especially because a lot of people all over the world are using this site, I think admin have to pay attention to such a problem to keep the web policy and law. T...
by tan_Yui
Thu Dec 29, 2005 5:54 am
Forum: Other words
Topic: Copyright of image
Replies: 7
Views: 4176

Re: Copyright of image

And, if you solvers find the other problems or board image of user which have doubt about infringe the copyrights, it'll be helpful to fix for this site. When you report the information about board image of user, not to write it to this board, but to email to them or admin directly (because if speci...
by tan_Yui
Thu Dec 29, 2005 5:50 am
Forum: Other words
Topic: Copyright of image
Replies: 7
Views: 4176

Copyright of image

About several problems : http://online-judge.uva.es/p/v108/10818.html (10818 Dora Trip) http://online-judge.uva.es/p/v109/10976.html (10976 Fractions Again?!) http://online-judge.uva.es/p/v109/10977.html (10977 Enchanted Forest) http://online-judge.uva.es/p/v109/10980.html (10980 Lowest Price in Tow...
by tan_Yui
Mon Dec 12, 2005 8:02 am
Forum: Volume 101 (10100-10199)
Topic: 10131 - Is Bigger Smarter?
Replies: 93
Views: 64532

I am missing something and I have no idea what. And it has nothing to do with "normal" cases, I just can't see what those "abnormal" ones might be (I check for 0 and 1 elephant and print 0 for 0 and 1\n1 for 1 - is that ok?) Darko My code also prints 0 for no elephants, and 1\n1 for 1 elephant. And...
by tan_Yui
Sun Dec 11, 2005 3:20 pm
Forum: Volume 101 (10100-10199)
Topic: 10131 - Is Bigger Smarter?
Replies: 93
Views: 64532

Hi, Darko. I solved this problem just now. I took one year to understand what my code was wrong. :) My method is here. At first, sort by their IQ in decreasing order. If there are same IQ and different weights, then sort by their weights in decreasing order. Second, LIS by their weight. In this case...
by tan_Yui
Sun Dec 11, 2005 2:59 am
Forum: Volume 101 (10100-10199)
Topic: 10194 - Football (aka Soccer)
Replies: 119
Views: 36653

Anyone can help me for above my post?
I want to know why my code get RuntimeError.

Thank you.
by tan_Yui
Fri Dec 09, 2005 11:07 pm
Forum: Volume 109 (10900-10999)
Topic: 10905 - Children's Game
Replies: 66
Views: 25640

Finally, I could get AC again!
By the way, my old code, which cannot get the correct answer, also got AC judgement.
Of course, I know that the judge data is not perfect,
but I think it is necessary to re-judge this problem.

Thanks.

Go to advanced search