ENG
RUS
Timus 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
GaoHughes
Why the sample output is 3 ? But not 2 ?
[2] // Problem
1005. Stone Pile
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 ??
Moonstone
Re: Why the sample output is 3 ? But not 2 ?
[1] // Problem
1005. Stone Pile
4 Sep 2010 22:56
// the number of stones
5
// their weights
5 8 13 27 14
GaoHughes
Re: Why the sample output is 3 ? But not 2 ?
// Problem
1005. Stone Pile
6 Sep 2010 18:50
oh,I see.
Thank you!
© 2000–2026
Timus Online Judge Team
. All rights reserved.