Page 1 of 1

309 - FORCAL

Posted: Fri Oct 11, 2002 4:38 pm
by Mano2K
After I figured out that comments starts with "--", not with "-" (that's what the html says), the problem made some sense. But is there anything special about them?

I says "no part of any comment is a token". That could mean two things:
a) if you find a "--", ignore the rest of the line
b) if you find a "--" with no valid token in the rest of the line, THEN it is a comment

I though it was the first one, but I got WA. The second one doesn't exactly make sense, but who knows? :(

Can anyone help me with it?

Posted: Thu Jan 22, 2004 8:27 pm
by junbin
if you find a -- ignore the rest of the line.

309 - Need help for fixing PE

Posted: Thu Jun 03, 2004 5:50 pm
by ..
I get PE on 309, I think the reason is, for the sample input:

A123 A123 )
01.2 A B
C

sample output:
A123 A123
)
01
TOKEN ERROR

I don't understand why I need to put "A123 A123" in one line.
My program outputs this:
A123
A123
)
01
TOKEN ERROR

Could anyone kindly tell what I missed in the problem?
Thanks!

Posted: Thu Jun 03, 2004 6:27 pm
by little joey
My program also outputs the two A123 on separate lines, but gets Accepted without P.E. So there must be something else.
One thing: I only write empty lines if they appear in the input, not after every block as in the problem statement. In fact I process the input line by line, not block by block and just echo empty lines...

Posted: Thu Jun 03, 2004 7:04 pm
by ..
Thanks for the hint, I get accepted.
I think the problem specifiaction need to be changed, I will mail the admin for that.

309 why WA!!!

Posted: Tue Sep 30, 2008 6:53 pm
by yasseryahia
This is a simple problem and thats why I am wondering why I am getting a WA

here is how I work on it

while ( NOT EOF )
read a complete block and save it in a vector
for each line in the block
process the line till the end of it or till U find a token error- if token error ignore the rest of the block -


I have found the input file and output file on the region website and my output matches the output file so any tricky output that can give me the WA ??!!

309 FORCAL I got wa all the time!

Posted: Wed Mar 04, 2009 8:43 pm
by chinaeli
I doubt if there exist some characters that have not been mentioned in the description , such as '!' , '?' ,etc.
However I have checked these characters , I still get wa...
I wonder "abc.a" or "abc.1" is legal. I think they are illegal , because it is said that "Identifiers are composed of letters, digits and underscores. "

Now I am hopefully want to get the offical input data and output data , please help me!
I have searched the data on the centeral europe regional offical website , but it doesn't afford the data of the contest in 1996 .
Anyone who has the data , please email me or reply the post . Thank you !!!
china.eli@gmail.com ( my email )