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

Обсуждение задачи 1414. Астрономическая база данных

How can I get where's the end of commands?
Послано Lutsenko 15 фев 2006 14:54
How can I get where's the end of commands? There are no files and eof() in pascal won't help.
Simply while not EOF do (-)
Послано Michael Rybak (accepted@ukr.net) 15 фев 2006 18:30
-
Re: Simply while not EOF do (-)
Послано Tbilisi SU: Lutsenko 22 фев 2006 20:20
Thanx, but now I have another problem: WA #5.
I'm adding all the stars, was it in the base or not. Then on a query I create a new array with stars matching the mask, but not in this array already. Then quicksort this array and output.
Maybe my algorythm is wrong and I should enter all the stars first, sort them and then output. This may work because only 20 first stars should be printed.
What can you say?
And sorry for my bad english :)
Do you add the word 'sun' at the beginning? (+)
Послано Michael Rybak (accepted@ukr.net) 23 фев 2006 01:19
Your algo seems to be correct.
Re: Simply while not EOF do (-)
Послано Tkach 25 фев 2006 00:42
I Write Simple Algo But WA 5 too...
Re: Simply while not EOF do (-)
Послано Tbilisi SU: Andrew Lutsenko 7 апр 2006 18:18
I do add the word "sun" in my base
Can't tell; I can send you my program so you compare the outputs for random tests (-)
Послано Michael Rybak (accepted@ukr.net) 7 апр 2006 19:36
-
Re: Can't tell; I can send you my program so you compare the outputs for random tests (-)
Послано Tbilisi SU: Andrew Lutsenko 19 апр 2006 21:48
I would be very gratefull, here's my email: zorg-n-ko@nm.ru