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

Why the sample output is 3 ? But not 2 ?
Posted by GaoHughes 4 Sep 2010 20:26
The sample input is: 5  5  8  13  27  14
output is: 3  !!!!
But (5+5+13+14)=37
    (8+27)=35
so 37-35=2!!!!!!!!!!!
why is 3  ??
Re: Why the sample output is 3 ? But not 2 ?
Posted by Moonstone 4 Sep 2010 22:56
// the number of stones
5

// their weights
5 8 13 27 14
Re: Why the sample output is 3 ? But not 2 ?
Posted by GaoHughes 6 Sep 2010 18:50
oh,I see.
Thank you!