ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Common Board

Help me with 1067 (Disk Tree)
Posted by ALT_TAB 12 Feb 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
Posted by Petko Minkov 12 Feb 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
Posted by ALT_TAB 12 Feb 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
Posted by Petko Minkov 13 Feb 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.