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 1463. Happiness to People!

WA8, some hints? PLZ
Posted by hliu20 28 May 2013 17:48
Re: WA8, some hints? PLZ
Posted by hliu20 28 May 2013 17:54
can anybody give some cases? what the #8 is?
Re: WA8, some hints? PLZ
Posted by Helder Lima da Rocha 19 Mar 2014 19:34
9 8
1 5 4 6 10 1 2 2 1
1 2 1
2 3 10
2 4 1
4 5 1
4 6 2
6 7 2
6 8 3
3 9 1

Answer:
39
5
5 4 3 2 9

or

39
5
9 2 3 4 5
Re: WA8, some hints? PLZ
Posted by Shayan Modiri 24 Dec 2014 00:05
Answer:

39
5
5 4 2 3 9

or

39
5
9 3 2 4 5