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

Обсуждение задачи 1246. Собака на привязи

200000 for 1 second? Help me, please!
Послано Danilchenko Anton 3 апр 2003 01:34
My program work about 6.8 second on full test on P166. But 6.2 second
of this time is a reading data (testing from hard disk not from
memory). How can I read more then 200000x2x10=4000000 bytes for 1
second? Though test is all in memory (I think), I belive that scaning
data to float format is very hard operation. I used 'scanf' function.

Give me good advice please.
It's easy (+)
Послано uuuuuuu 3 апр 2003 01:47
here they've quite fast computers so don't worry if you have a good
solution !!!. I've solved it just by analyzing every point one by one
while reading them. After I'd solved it, I realised that they have
only tests to which answer is 'ccw' so they didn't strained
themselves ;P

If you experience any further problems just ask !

Good luck !!!
Re: It's easy (+)
Послано Danilchenko Anton 3 апр 2003 02:05
> here they've quite fast computers so don't worry if you have a good
> solution !!!. I've solved it just by analyzing every point one by
one
> while reading them. After I'd solved it, I realised that they have
> only tests to which answer is 'ccw' so they didn't strained
> themselves ;P
>
> If you experience any further problems just ask !
>
> Good luck !!!
Re: It's easy (+)
Послано Danilchenko Anton 3 апр 2003 02:07
I've got time limit 2 times.
Damn it seems that my program now receives WA ;(( ...
Послано uuuuuuu 3 апр 2003 18:56
> I've got time limit 2 times.
>
Speed
Послано aa 3 апр 2003 20:15
No, their computers are slow, I think.
I have a solution worked about 2.4 sec(not this problem, and I have
a watch to calculate the time) on my computer(Duron 800) but the
judge said I worked 3.1 sec!
Why Time Limit? O(N). 1.021 sec
Послано Artom Melentiev 20 апр 2003 21:40
Why Time Limit? I tried to use double, iostream. How to solve easier O(N)?

[code deleted]

Edited by moderator 11.01.2007 16:20
Why Time Limit? O(N). 1.021 sec
Послано Artom Melentiev 20 апр 2003 21:41
Why Time Limit? I tried to use double, iostream. How to solve easier O(N)?

[code deleted]

Edited by moderator 11.01.2007 16:21
Re: Why Time Limit? O(N). 1.021 sec
Послано neoGolden 22 окт 2006 19:20
How You get this solution. Explain him, please.
Re: Why Time Limit? O(N). 1.021 sec
Послано Fyodor Menshikov 11 янв 2007 16:13
Moderators, please remove the code from this branch of the forum.