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

wa#2 come in
Posted by Chidori 16 Nov 2005 19:52
I have wa#2 for many times, but at last I have done it.
If you are in same situation, notice M can be larger than N. You should output something - the largest number in 1..N.
Re: wa#2 come in
Posted by Oleg Strekalovsky [Vologda SPU] 25 Apr 2009 02:10
It's can't be.
Chidori wrote 16 November 2005 19:52
I have wa#2 for many times, but at last I have done it.
If you are in same situation, notice M can be larger than N. You should output something - the largest number in 1..N.
Re: wa#2 come in
Posted by gautamvs 7 Feb 2013 15:05
Chidori wrote 16 November 2005 19:52
I have wa#2 for many times, but at last I have done it.
If you are in same situation, notice M can be larger than N. You should output something - the largest number in 1..N.

Another reason could be data-type not able to hold values in the range of 0 and 100000
Re: wa#2 come in
Posted by Komron 8 Feb 2013 13:48
M is always less or equal to N man, read the problem once more for assurance and also i don't think that WA can be cause of data-type which can't hold values from 0 to 10^6..simple "integer/int" is ok man.
Re: wa#2 come in
Posted by sky 16 Sep 2014 19:36
test case 2 has exactly 25000 measured values....
eg-
3
10
11
1
19
...
...
...
(25000 integers)
-1


so,be careful in declaring the size of array... :)(you can use arr[25001] ).