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

Общий форум

Help me with 1067 (Disk Tree)
Послано ALT_TAB 12 фев 2001 18:43
I can't get accept on this simple problem...
And I have some questions.

1. Does '~' higher than 'A' ?

2. Does '(' higher than 'A' ?

3. Are codes of all used symbols lower, than 128 ? (signed
char)


And... Check your tests, please...
i used strcmp and it was okay
Послано Petko Minkov 12 фев 2001 19:17
> I can't get accept on this simple problem...
> And I have some questions.
>
> 1. Does '~' higher than 'A' ?
>
> 2. Does '(' higher than 'A' ?
>
> 3. Are codes of all used symbols lower, than 128 ?
(signed
> char)
>
>
> And... Check your tests, please...

 I used C++'s strcmp to compare lexicographically
string without bothering about 1, 2 and 3 and it
worked Okay.
Re: i used strcmp and it was okay
Послано ALT_TAB 12 фев 2001 22:47
Thank you.

And what is the maximum number of different directories ?
(I've receive some Memory Limits)

I think this number is 20000. And maximum memory for it is
equal to 20000*(8+1) ~ 200 kB.

Am I right ?
Re: i used strcmp and it was okay
Послано Petko Minkov 13 фев 2001 01:31
> Thank you.
>
> And what is the maximum number of different directories ?
> (I've receive some Memory Limits)
>
> I think this number is 20000. And maximum memory for it
is
> equal to 20000*(8+1) ~ 200 kB.
>
> Am I right ?

20000 worked with my proggy. But i use strlen(word)+1 memory
for keeping every word, but not 9 chars or so.