Page 1 of 1
625 - Compression
Posted: Thu Apr 15, 2004 7:19 pm
by howardcheng
Are there any tricky cases in this problem? It seems simple but I am getting wrong answers. (I am using isalnum() to test for identifiers.)
Posted: Mon May 03, 2004 10:37 pm
by DGN
The identifiers of this problem are case-sensitive?
I think that my program covers all possible cases that I can deduce from the text.
Are there any tricky cases in this problem?
Can post anyone some in / out examples?
Thanks in advance

Posted: Tue May 04, 2004 12:14 am
by howardcheng
Stupid me...I jumped into the description and forgot that it was a multiple input problem. I changed that and my program was accepted.
Posted: Tue May 04, 2004 5:46 am
by DGN
Thanks howard,
But my program continues with WA
In multiple input I need to clean the identifier table when find a 'end.'?
Identifiers are case-sensitive? IDENT2 <> ident2 <> Ident2
Shorter than 3 is: <=3 or <3?
I send all of this combinations and get in all of them WA. Any ideas?
Thanks
Posted: Tue May 04, 2004 6:10 am
by howardcheng
In my solution:
- I start with a dictionary for every program (after end.)
- I skip tokens of length < 3
- I treat the tokens as case-sensitive
Posted: Tue May 04, 2004 10:33 am
by DGN
I think that my program suport the same cases, but I've get WA again

It's a simple program but I don't know because not solve the problem.
[cpp]/*
Code removed.
After a few changes (program reestructuration) it was be accepted.
*/
[/cpp]
Posted: Wed May 05, 2004 11:46 pm
by DGN
I detected a few more problems in the program.
1) This is my first multiple input problem and I show the number of cases in the output. Stupid mistake. (thanks Oriol)
2) I reset de dictionary table if I found the 'end.' substring, but I only do that if it is in the beginning of line.
3) Processing the standard input only for the number of programs indicated by the multiple input first line (ignore the rest of end lines).
Many thanks for your help, Howard.
Need help on pb 625
Posted: Thu Nov 15, 2007 12:58 am
by rulio
I always get wrong answer for this problem.. I read the problem a thousand times, and can t see what I am doing wrong.
I might have mis interpreted something, but there aren t much hypothesis and I took into accound some specific points discussed in previous replies...
I would be very interested in any sample inputs/ outputs,
Thanx
Found solution
Posted: Fri Nov 16, 2007 1:19 am
by rulio
I finally got accepted... Stupid problem with ASCII table.. I forgot there were non alphanumerics caracters between "Z" and "a";)
FOr others with difficulties here : Use your code as input, it helped me a lot.