11152 - Colourful Flowers

All about problems in Volume 111. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

DP
Learning poster
Posts: 62
Joined: Sun Aug 13, 2006 9:15 am
Location: Bangladesh
Contact:

Post by DP » Sun Dec 31, 2006 9:47 am

Thanks a lot.

Gaolious
New poster
Posts: 28
Joined: Mon Nov 04, 2002 8:03 pm
Location: South Korea, Seoul
Contact:

i got WA

Post by Gaolious » Fri Feb 09, 2007 1:49 pm

could you check the my code ??

would you teach me what is wrong ?

Code: Select all

 cut 
Last edited by Gaolious on Fri Feb 09, 2007 3:22 pm, edited 1 time in total.

helloneo
Guru
Posts: 516
Joined: Mon Jul 04, 2005 6:30 am
Location: Seoul, Korea

Post by helloneo » Fri Feb 09, 2007 2:26 pm

See sohel's post..

Gaolious
New poster
Posts: 28
Joined: Mon Nov 04, 2002 8:03 pm
Location: South Korea, Seoul
Contact:

hm..

Post by Gaolious » Fri Feb 09, 2007 3:36 pm

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. ^^

helloneo
Guru
Posts: 516
Joined: Mon Jul 04, 2005 6:30 am
Location: Seoul, Korea

Post by helloneo » Fri Feb 09, 2007 3:45 pm

Sometimes, just a small difference make a rounding error..
For example, if you got the value 1.2345499999999999, 0.0000000000001 is very important.. :)

Gaolious
New poster
Posts: 28
Joined: Mon Nov 04, 2002 8:03 pm
Location: South Korea, Seoul
Contact:

Post by Gaolious » Sat Feb 10, 2007 3:57 pm

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.

brahle
New poster
Posts: 4
Joined: Mon May 22, 2006 11:39 am

Post by brahle » Thu Mar 15, 2007 5:20 pm

I got WA with the following code:

Code: Select all

cut after acc
Can someone please say what is wrong?
EDIT: I had a typing mistake.

RED-C0DE
New poster
Posts: 16
Joined: Mon Mar 26, 2007 6:47 pm

Post by RED-C0DE » Sun Apr 08, 2007 8:08 pm

Hi everyone. Could u please give me some Input/Output examples with this problem???

~~~~~tnx in advance~~~~~~

chinmoy kanti dhar
New poster
Posts: 19
Joined: Fri Jun 22, 2007 6:17 pm
Location: bangladesh

why wr????

Post by chinmoy kanti dhar » Fri Jul 13, 2007 1:51 am

help me plz....

cut after accepted
Last edited by chinmoy kanti dhar on Sat Jul 14, 2007 1:15 am, edited 2 times in total.

mmonish
Experienced poster
Posts: 109
Joined: Sun Mar 11, 2007 2:55 pm
Location: SUST

Post by mmonish » Fri Jul 13, 2007 4:22 am

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.

chinmoy kanti dhar
New poster
Posts: 19
Joined: Fri Jun 22, 2007 6:17 pm
Location: bangladesh

Post by chinmoy kanti dhar » Sat Jul 14, 2007 7:20 pm

thanks mmonis.

User avatar
kana
New poster
Posts: 19
Joined: Mon Mar 13, 2006 6:03 pm
Location: dhaka

Post by kana » Thu Aug 30, 2007 10:02 pm

again i failed to figure out the problem with this code and getting WA with each submission. plz help!!! :cry:

Code: Select all

      accepted
Last edited by kana on Fri Aug 31, 2007 9:38 pm, edited 2 times in total.

Jan
Guru
Posts: 1334
Joined: Wed Jun 22, 2005 10:58 pm
Location: Dhaka, Bangladesh
Contact:

Post by Jan » Thu Aug 30, 2007 10:11 pm

Why are you printing comma(s) between numbers?
Ami ekhono shopno dekhi...
HomePage

rossi kamal
New poster
Posts: 14
Joined: Mon Sep 03, 2007 10:11 am
Contact:

Post by rossi kamal » Wed Sep 19, 2007 12:57 pm

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

tobby
Learning poster
Posts: 98
Joined: Fri Dec 30, 2005 3:31 pm

Post by tobby » Wed Sep 19, 2007 3:55 pm

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.

Post Reply

Return to “Volume 111 (11100-11199)”