ENG  RUSTimus Online Judge
Online Judge
Задачи
Авторы
Соревнования
О системе
Часто задаваемые вопросы
Новости сайта
Форум
Ссылки
Архив задач
Отправить на проверку
Состояние проверки
Руководство
Регистрация
Исправить данные
Рейтинг авторов
Текущее соревнование
Расписание
Прошедшие соревнования
Правила
вернуться в форум

Обсуждение задачи 1126. Магнитные бури

Chidori wa#2 come in [4] // Задача 1126. Магнитные бури 16 ноя 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.
Oleg Strekalovsky [Vologda SPU] Re: wa#2 come in // Задача 1126. Магнитные бури 25 апр 2009 02:10
It's can't be.
Chidori писал(a) 16 ноября 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.
gautamvs Re: wa#2 come in [1] // Задача 1126. Магнитные бури 7 фев 2013 15:05
Chidori писал(a) 16 ноября 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
Komron Re: wa#2 come in // Задача 1126. Магнитные бури 8 фев 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.
sky Re: wa#2 come in // Задача 1126. Магнитные бури 16 сен 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] ).