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

Hot to use fact, that sum=S+N?
Posted by Oracle[Lviv NU] 23 Mar 2009 02:19
How to use information about sum of entire sequence? I've solved this problem for any sum of sequence, not only S+N. But algo is quite complicated. Is there any way to simplify algo using information about sum of sequence?
Re: Hot to use fact, that sum=S+N?
Posted by Nick J 23 Mar 2009 18:12
probably if you subtract 1 from every element, you get simpler problem.