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 1126. Magnetic Storms

@Admins: please correct the limits
Posted by shafaet 1 Jul 2012 23:47
""The first line contains a number M, 1 < M ≤ 14000. Then values (N integers) measured by the device follow each one in its line. There is a number −1 in the end. M ≤ N ≤ 25000. """

Limit of M is defined twice here,2nd one is correct.
Re: @Admins: please correct the limits
Posted by Smilodon_am [Obninsk INPE] 3 Jul 2012 12:25
I think you are wrong.
These two boundary conditions have following meaning. If N <= 14000 so M <= N, if 14000 < N <= 25000, so M <= 14000.
Re: @Admins: please correct the limits
Posted by zgushonka 29 Aug 2012 18:01
M ≤ N ≤ 25000 also mean that M ≤ N. (or not?)

in example m = 3

and n can be 0.

M ≤ N not correct in this case.

anyway this is has no difference for solve task, but:

need to avoid ambiguity/comfuse.

Edited by author 29.08.2012 18:03