ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1039. Anniversary Party

Reason for WA#13
Posted by dezaixing 30 May 2008 16:15
Just pay attention when Conviviality rating < 0.
Re: Reason for WA#13
Posted by chinaeli 1 Aug 2008 14:34
thank you
Re: Reason for WA#13
Posted by Morbidel 3 Feb 2009 19:10
can you be more precise?
Thank you!
Re: Reason for WA#13
Posted by Linn 22 Mar 2009 09:51
11
5
4
3
2
7
1
1
1
1
1
1
6 4
7 4
8 4
9 5
10 5
11 5
4 3
5 3
3 2
2 1
0 0

Answer:15
Re: Reason for WA#13
Posted by hdya_backfire 18 Oct 2012 11:40
Thx
Re: Reason for WA#13
Posted by Domacles 2 Aug 2013 07:49
15

Edited by author 02.08.2013 07:51

Edited by author 02.08.2013 08:04

Edited by author 02.08.2013 08:04

Edited by author 02.08.2013 08:04
Re: Reason for WA#13
Posted by uestcmy 24 Oct 2017 20:02
I think  all of subtrees of the current node should be calculated before the current node is calculated.

Edited by author 24.10.2017 20:03

Edited by author 24.10.2017 20:03
Re: Reason for WA#13
Posted by Mayank Bist 3 Sep 2020 20:04
Thanks a lot
Re: Reason for WA#13
Posted by >>> 26 Oct 2021 14:27
спасибо тебе, это реально помогло мне
Re: Reason for WA#13
Posted by Dhaval Rathod 18 Jan 2022 19:53
I got WA#13 .But my dfs was a little wrong and I got ac after correcting it.