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 1247. Check a Sequence

Bad tests
Posted by _ksardas 29 Feb 2008 23:44
My first AC submission
on test
s = 5 n = 2
 1 3 0 3 0
answers YES,
but correct is NO

(sorry for bad english)
Re: Bad tests
Posted by Huy 17 Nov 2008 18:17
"No" is true.

because: a[1]=1 a[2]=3 a[3]=0 a[4]=3 a[5]=0;

sum=a[1]+a[2]+a[3]=6 > (4-2+1)+2=5 ,=> "No"