Page 1 of 1
11474 - Dying Tree
Posted: Mon Aug 04, 2008 2:37 pm
by Samiul
Can anyybody help me on this problem? I have no idea why I am getting WA.
Re: 11474 - Dying Tree
Posted: Tue Aug 05, 2008 9:26 am
by asmaamagdi
You should set edge to 0. Your code fails when the first tree (only) can talk to a doctor.
Re: 11474 - Dying Tree
Posted: Tue Aug 05, 2008 1:35 pm
by Samiul
Thanks a lot.
Re: 11474 - Dying Tree
Posted: Tue Mar 03, 2009 7:03 pm
by vahid sanei
i got WA
and i changed this
Code: Select all
struct node{
char kind;
[b]double[/b] xx,yy;
int index;
};
to
Code: Select all
struct node{
char kind;
int xx,yy;
int index;
};
and I got Acc

I dont know ,Why !
(maybe for reading inputs
if xx=3 , so for double xx is 2.99999999)
and i have another problem
problem says :
0 < n < 100, 0 < m ? 10, 0 ? k, d ? 100
and 0 < b < 10
so we have 10*10(trees) + 100 (number of doctor) = 200 nodes
but i got runtime error with list[300];
and i think picture isn`t exactly answer
this`s better : (Click on pic)

11474 - Dying Tree_wa
Posted: Sat Sep 12, 2009 9:01 am
by calicratis19
AC

Re: 11474 - Dying Tree
Posted: Fri Apr 20, 2012 3:34 am
by Scarecrow
i can't find what's wrong with my code as i'm getting WA for this problem. can any1 help plz?
Re: 11474 - Dying Tree
Posted: Fri Apr 20, 2012 10:32 pm
by brianfry713
Your code fails on this input:
AC Output:
Re: 11474 - Dying Tree
Posted: Fri Apr 20, 2012 11:27 pm
by Scarecrow
thnx

made a silly mistake