Search found 4 matches

by hongyan
Thu Oct 20, 2005 6:58 am
Forum: Volume 1 (100-199)
Topic: 114 - Simulation Wizardry
Replies: 80
Views: 7738

lifetime maybe very big.
by hongyan
Thu Oct 20, 2005 4:25 am
Forum: Volume 1 (100-199)
Topic: 112 - Tree Summing
Replies: 137
Views: 14129

I don't know whether it wrong because I consider the left child node and right child node as the same.

when I make the tree, for each father node, I put the child node on the left first, and then fill the right node.

I think it's right. But I got WA.Maybe my algorithm is wrong?
by hongyan
Wed Oct 19, 2005 3:15 am
Forum: Volume 1 (100-199)
Topic: 112 - Tree Summing
Replies: 137
Views: 14129

There are nothing different between my output and yours.
I got WA. :cry: :cry: :cry:
by hongyan
Wed Oct 19, 2005 3:10 am
Forum: Volume 1 (100-199)
Topic: 112 - Tree Summing
Replies: 137
Views: 14129

112 WA

I have read all the topic about 112,and try all the data correct.I don't know why still wrong answer. Anyone can help me?Thanks a lot!!!! :cry: :cry: :cry: Here is my code: #include<stdio.h> const long maxn=10000; char ch,s[maxn+5]; long l,n,m,sz[maxn+5],tree[maxn+5],leaf[maxn+5]; long run(long x){ ...

Go to advanced search