333 - Recognizing Good ISBNs
Moderator: Board moderators
I haven't solved this problem, but I just want to ask a question. Has anyone tried reading a whole input at a time? I'm just curious to know how long does it take? Somehow I have a feeling that this accepted guy has not been rejudged. Have you thought how 104 zero time was possible? I have and the only conclusion I have, is that in 104 you can't read even data in zero time -- my best was 0.010. So maybe they have some 'holes' in rejudging and the whole 333 input data is bad and it is not your problem that you cannot get it accepted.
Ivor
Ivor
-
- Experienced poster
- Posts: 167
- Joined: Fri Oct 19, 2001 2:00 am
- Location: Saint Petersburg, Russia
He he, 168 is our old friend the Minotaur, isn't it?
Re 333, I've been able to deduct, with reasonable certainty that:
1. The input contains empty line(s);
2. There are no lines with just space-chars;
3. There are no cases where space-chars are the only illegal chars in an otherwise legal ISBN (legal according to the previously accepted algo);
4. There are ISBDs with more than one X.
I tried the four ACCEPT/REJECT combinations on 1 and 4, but they all turn out WA
Waiting in despair,
-xenon
PS. Ivor, you got an interesting point. I just tried it and the program took 0.120 seconds to run, just reading input! So there must be tricks to fool the judge.
Re 333, I've been able to deduct, with reasonable certainty that:
1. The input contains empty line(s);
2. There are no lines with just space-chars;
3. There are no cases where space-chars are the only illegal chars in an otherwise legal ISBN (legal according to the previously accepted algo);
4. There are ISBDs with more than one X.
I tried the four ACCEPT/REJECT combinations on 1 and 4, but they all turn out WA

Waiting in despair,
-xenon
PS. Ivor, you got an interesting point. I just tried it and the program took 0.120 seconds to run, just reading input! So there must be tricks to fool the judge.
I don't believe there is a way to fool the judge in that way but there are tricks. For example you can use far more memory than 32M, but only if your program is fast enough to finish within 0.080/0.090 seconds.
I found it some days ago, but I didn't fit within this limit.
But I do believe it's due to rejudging. Maybe they have some bugs in their rejudging program?
Ivor

But I do believe it's due to rejudging. Maybe they have some bugs in their rejudging program?

Ivor
-
- Guru
- Posts: 834
- Joined: Wed May 29, 2002 4:11 pm
- Location: Wroclaw, Poland
- Contact:
I'm really frustrated on this problem ....
I found one more problem with ISBN's - is number starting with hyphen correct? And what should I print if line has only white spaces ?
And finally - tab character is legal or illegal ? And what about white spaces inside of ISBN ?
Maybe anyone has any idea about that ?
Greetings
Dominik
I found one more problem with ISBN's - is number starting with hyphen correct? And what should I print if line has only white spaces ?
And finally - tab character is legal or illegal ? And what about white spaces inside of ISBN ?
Maybe anyone has any idea about that ?
Greetings
Dominik
-
- Guru
- Posts: 834
- Joined: Wed May 29, 2002 4:11 pm
- Location: Wroclaw, Poland
- Contact:
-
- Experienced poster
- Posts: 167
- Joined: Fri Oct 19, 2001 2:00 am
- Location: Saint Petersburg, Russia
-
- Guru
- Posts: 834
- Joined: Wed May 29, 2002 4:11 pm
- Location: Wroclaw, Poland
- Contact:
I think about that, but I notice a long time ago judge about problems with another problem (139 in fact) and I got response, that all's OK ... after that - 2 weeks later maybe - rejudgement was occurred adn I got Accepted
)
I try to notice judges about 333 today afternoon ....
but btw. I think that somebody just did it
))

I try to notice judges about 333 today afternoon ....


-
- Guru
- Posts: 834
- Joined: Wed May 29, 2002 4:11 pm
- Location: Wroclaw, Poland
- Contact: