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

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

need help!
Послано Roman Nazarkevych 1 ноя 2005 20:31
Please give me some test becouse I always have WA#1!
It is not '.'(dot) but ' '(space). read the problem carefully.
Послано Safe Bird 2 ноя 2005 11:01
Re: It is not '.'(dot) but ' '(space). read the problem carefully.
Послано Roman Nazarkevych 2 ноя 2005 12:18
I don't print dots, only spaces!
Calm down..
Послано Safe Bird 2 ноя 2005 14:21
don't shout loudly and show your impatience.

case 1 is frequently similar or exactly the same as sample input. check it carefully, esp. the format.

what's more, you should check if you have put the word "sun" inside your words list.
Re: Calm down..
Послано Roman Nazarkevych 3 ноя 2005 03:20
Of course I remember about the word "sun".
But inspite of it I can't find my mistake!
Re: Calm down..
Послано Roman Nazarkevych 3 ноя 2005 20:17
Am I right that (e10<e2)?
I think you're right.
Послано Safe Bird 4 ноя 2005 09:39
I just used strcmp in C/C++.
Besides, i really met no trick.. I got AC directly/firstly during the contest
Re: I think you're right.
Послано Roman Nazarkevych 4 ноя 2005 18:08
I use strcmp too and I can't understand why WA#1.
Show your code! (-)
Послано Victor Barinov (TNU) 4 ноя 2005 20:56
Re: Show your code! (-)
Послано Roman Nazarkevych 5 ноя 2005 00:45
[code deleted]

Edited by moderator 08.11.2005 00:06
Re: Show your code! (-)
Послано Victor Barinov (TNU) 5 ноя 2005 04:27
You output only one space, but in description:
"Each name must be preceded by two spaces as it is shown in the sample"


Edited by author 05.11.2005 04:28
Re: Show your code! (-)
Послано Roman Nazarkevych 5 ноя 2005 04:36
I print two spaces, but they aren't shown in this page!
Strange!
Послано Shambala 5 ноя 2005 21:10
It is really strange! I tested your code on simple tests with my prg and all outputs are equal...
You need help of author...
Re: Show your code! (-)
Послано Vladimir Yakovlev (USU) 8 ноя 2005 00:05
Your solution outputs last query twice!

Try this

while(cin>>c>>s){

instead of

while(!cin.eof()){
cin>>c>>s;
Re: Show your code! (-)
Послано Roman Nazarkevych 8 ноя 2005 03:41
Thank You!!!
You were right!!!

Edited by author 08.11.2005 16:43
Re: Show your code! (-)
Послано Roman Nazarkevych 8 ноя 2005 16:43