11152 - Colourful Flowers
Moderator: Board moderators
-
- New poster
- Posts: 28
- Joined: Mon Nov 04, 2002 8:03 pm
- Location: South Korea, Seoul
- Contact:
hm..
what's the difference between 3.1415926 and 3.141593 ??helloneo wrote:See sohel's post..
it is related in the requirement of problem ( 4 precious ? )
anyway, thanks for your advice, helloneo. ^^
I got WA with the following code:
Can someone please say what is wrong?
EDIT: I had a typing mistake.
Code: Select all
cut after acc
EDIT: I had a typing mistake.
-
- New poster
- Posts: 19
- Joined: Fri Jun 22, 2007 6:17 pm
- Location: bangladesh
why wr????
help me plz....
cut after accepted
cut after accepted
Last edited by chinmoy kanti dhar on Sat Jul 14, 2007 1:15 am, edited 2 times in total.
ur formula for the area of the circle is not correct.
try this cases
Try to figure out the correct formula for the radious of the circle.
Hope this helps.
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
Hope this helps.
-
- New poster
- Posts: 19
- Joined: Fri Jun 22, 2007 6:17 pm
- Location: bangladesh
again i failed to figure out the problem with this code and getting WA with each submission. plz help!!!

Code: Select all
accepted
Last edited by kana on Fri Aug 31, 2007 9:38 pm, edited 2 times in total.
-
- New poster
- Posts: 14
- Joined: Mon Sep 03, 2007 10:11 am
- Contact:
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
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