Page 2 of 4
Posted: Sun Dec 31, 2006 9:47 am
by DP
Thanks a lot.
i got WA
Posted: Fri Feb 09, 2007 1:49 pm
by Gaolious
could you check the my code ??
would you teach me what is wrong ?
Posted: Fri Feb 09, 2007 2:26 pm
by helloneo
See sohel's post..
hm..
Posted: Fri Feb 09, 2007 3:36 pm
by Gaolious
helloneo wrote:See sohel's post..
what's the difference between 3.1415926 and 3.141593 ??
it is related in the requirement of problem ( 4 precious ? )
anyway, thanks for your advice, helloneo. ^^
Posted: Fri Feb 09, 2007 3:45 pm
by helloneo
Sometimes, just a small difference make a rounding error..
For example, if you got the value 1.2345499999999999, 0.0000000000001 is very important..

Posted: Sat Feb 10, 2007 3:57 pm
by Gaolious
helloneo wrote:Sometimes, just a small difference make a rounding error..
For example, if you got the value 1.2345499999999999, 0.0000000000001 is very important..

thanks for your reply.
Posted: Thu Mar 15, 2007 5:20 pm
by brahle
I got WA with the following code:
Can someone please say what is wrong?
EDIT: I had a typing mistake.
Posted: Sun Apr 08, 2007 8:08 pm
by RED-C0DE
Hi everyone. Could u please give me some Input/Output examples with this problem???
~~~~~tnx in advance~~~~~~
why wr????
Posted: Fri Jul 13, 2007 1:51 am
by chinmoy kanti dhar
help me plz....
cut after accepted
Posted: Fri Jul 13, 2007 4:22 am
by mmonish
ur formula for the area of the circle is not correct.
try this cases
Code: Select all
15 16 17
4 6 8
25 32 41
My AC output
160.2326 44.0084 65.9734
41.9976 6.3830 5.2360
920.8626 190.6515 209.2685
Try to figure out the correct formula for the radious of the circle.
Hope this helps.
Posted: Sat Jul 14, 2007 7:20 pm
by chinmoy kanti dhar
thanks mmonis.
Posted: Thu Aug 30, 2007 10:02 pm
by kana
again i failed to figure out the problem with this code and getting WA with each submission. plz help!!!
Posted: Thu Aug 30, 2007 10:11 pm
by Jan
Why are you printing comma(s) between numbers?
Posted: Wed Sep 19, 2007 12:57 pm
by rossi kamal
i got AC
even though i did not check
sqrt(s(s-a) (s-b) (s-c))yields valid result or not
but it should be as follows
if s-a<0
s-a =(s-a)*(-1);
so My AC output for:
input:
1 2 1000
ouput:
-1.#IND -1.#IND -1.#IND
its strange that i got AC
becuase if i have s<1000 and a=1000 , will have sqrt(s* (s-a) *......)invalid result
Posted: Wed Sep 19, 2007 3:55 pm
by tobby
I think this is because all cases are valid. It is said in the problem statement that the three lengths are the sides of a triangle, so they satisfy the triangle inequalities.