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

What does it mean??
Posted by AmBush 3 Mar 2003 16:10
According to problem rules:

Is it right that for all 1 <= i <= j <= S the following inequality
holds:
Ai + Ai-1 + ... + Aj <= (j &#8211; i + 1) + N?

I do not understand the last line.
if j>=i then why Ai + Ai-1 + ... + Aj

Does it mean
Ai+Ai-1+Ai-2+...+A1+Aj or Aj+Aj-1+Aj-2+Aj-3+...+Ai+1+Ai

if yes then waht should i do when i=j
Ai+Aj or olny Ai





Re: What does it mean??
Posted by Tiberiu Danet 5 Mar 2003 23:14
It should be Ai + Ai+1 + ... + Aj.
Re: What does it mean??
Posted by A. Mironenko 24 Jul 2003 01:59
> It should be Ai + Ai+1 + ... + Aj.

Right. It is missprint here.