Search found 8 matches: 10678

Searched query: 10678

by brianfry713
Wed Dec 04, 2013 12:04 am
Forum: Volume 106 (10600-10699)
Topic: 10678 - The Grazing Cow
Replies: 17
Views: 14786

Re: 10678 - The Grazing Cow

Try using M_PI instead of your PI constant.
by Obaida
Wed Apr 08, 2009 9:29 am
Forum: Volume 106 (10600-10699)
Topic: 10678 - The Grazing Cow
Replies: 17
Views: 14786

Re: 10678 - The Grazing Cow

But when i submitted your code with some edition then it got acc!!! :o
ok m sending you d code by PM.

And your method is correct. :)
by ahmed
Wed Apr 08, 2009 8:56 am
Forum: Volume 106 (10600-10699)
Topic: 10678 - The Grazing Cow
Replies: 17
Views: 14786

Re: 10678 - The Grazing Cow

Still WA :( .Can you please tell me what should be the output when D>L? Like:- 100 99 or 110 100.
by Obaida
Wed Apr 08, 2009 7:05 am
Forum: Volume 106 (10600-10699)
Topic: 10678 - The Grazing Cow
Replies: 17
Views: 14786

Re: 10678 - The Grazing Cow

remove the double before sqrtl.... hope you will get acc. :)
by ahmed
Tue Apr 07, 2009 3:01 pm
Forum: Volume 106 (10600-10699)
Topic: 10678 - The Grazing Cow
Replies: 17
Views: 14786

Re: 10678 - The Grazing Cow

I have changed according to your suggestion,but I am still getting WA :( .Is there any special cases which I haven't considered.Can you give me some inputs to check?
Thanks for helping me out :)
by Obaida
Mon Apr 06, 2009 10:08 pm
Forum: Volume 106 (10600-10699)
Topic: 10678 - The Grazing Cow
Replies: 17
Views: 14786

Re: 10678 - The Grazing Cow

Replace the following part of your code:

Code: Select all

sqrtl((l/2*l/2)-(d/2*d/2));
with:

Code: Select all

sqrtl(((l/2)*(l/2))-((d/2)*(d/2)))
And remove your code after acc. :)
by ahmed
Mon Apr 06, 2009 4:51 pm
Forum: Volume 106 (10600-10699)
Topic: 10678 - The Grazing Cow
Replies: 17
Views: 14786

Re: 10678 - The Grazing Cow

Can anyone please give me any suggestion about why I am getting WA?My code is given below:-
#include<stdio.h>
#include<math.h>


int main(void)
{
double a,b,l,d,pi=2*acos(0);
int n;
scanf("%d",&n);
for(;n;n--)
{

scanf("%lf%lf",&d,&l);
a=l/2;
b=(double)sqrtl((l/2*l/2)-(d/2*d/2));
printf ...
by S.M.ferdous
Sun Dec 17, 2006 5:29 pm
Forum: Volume 106 (10600-10699)
Topic: 10678 - The Grazing Cow
Replies: 17
Views: 14786

10678 - The Grazing Cow

Hi everyone

I know its a very easy problem. it seems ellipse to me . I also know the area of ellipse is pi*a*b.

I know 'a' but how could I get 'b'. plz some one help me.

Go to advanced search