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 1005. Stone Pile

WA9, I'm check all forum topic, all test success, but WA9. Please!!!
Posted by phfaster 17 Nov 2016 19:04
My tests (N, Array, Answer):
[8, '6 7 9 13 18 24 31 50', 0],
[5, '5 5 4 3 3', 0],
[5, '3 3 4 5 5', 0],
[1, '1', 1],
[1, '2', 2],
[6, '1 4 5 6 7 9', 0],
[5, '5 8 13 27 14', 3],
[5, '5 4 3 3 3', 0],
[5, '11 10 8 7 6', 0],
[6, '1 4 5 6 7 9', 0],
[6, '9 7 6 5 4 1', 0],
[7, '1 2 3 4 5 6 6', 1],
[3, '1 1 5', 3],
[6, '1 2 3 4 100 100', 0],
[5, '5 8 13 14 15', 1],
[5, '4 6 6 7 9', 0],
[7, '36 25 12 10 8 7 1', 1],
[6, '101 51 51 3 2 2', 0],
[6, '1 4 5 6 7 9', 0],
[4, '1 3 9 27', 14],
[6, '6 6 5 4 3 2', 0],
[20, '1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20', 0]

All tests = True.
What I do wrong?

Edited by author 17.11.2016 19:27

Edited by author 17.11.2016 20:03