|  | 
|  | 
| вернуться в форум | wa#2 come in 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 It's can't be. 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 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 100000Re: wa#2 come in Послано Komron  8 фев 2013 13:48M 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 Послано sky  16 сен 2014 19:36test 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] ).
 | 
 | 
|