Question about comments
can {} comments be nested?
{ bla bla bla
{ comment on bla bla bla }
}
How should it be outputed:
<c>{ bla bla bla
{ comment on bla bla bla }</c>
}
or
<c>{ bla bla bla
{ comment on bla bla bla }
}</c>
And a question about strings
In PASCAL it is normal for string to have an apostrophe in it, but it should be written as double apostrophe.
'It''s a book'
should be highlighted (here) as
<s>'It'</s><s>'s a book'</s> or
<s>'It''s a book'</s> as logic says it should be done?
One more question about strings
It is normal practice to write #$A7 to indicate that character is 0xA7, what should be done? This should not be highlighted?
Question about numbers
If I have fucked up everybody with my questions, excuse me =(. But what should be done with negative numbers?
I have got AC
Here are answers:
Nested comments are not present!
'It''s a book' should became <s>'It'</s><s>'s a book'</s>
There are no hexadecimal characters! (e.g. #$A7)
No negative numbers!
Re: I have got AC
Posted by
svr 13 Aug 2007 13:27
Question is'n clear after all!
What answer must be for test {}{}
Acording problem description this string
may be understood by two ways:
1. Two sequental commentries;
2. One commentry with inner part }{
Thus grammar uncertain and description not right.
I got Ac 0.031 Finally and explanation of this
and another situations given by Kosman
on thif forum.
Here is important that Pascal language is used.
Edited by author 10.01.2009 20:24
Edited by author 10.01.2009 20:25
Re: Question about numbers
Posted by
Jerry 17 Aug 2007 19:25
Hey,hey,hey
You are using taboo words!!!!!
Ooooooooooooooopz!
Re: Question about numbers
Fuck you!
Re: Question about numbers
Posted by
hedrok 23 Jul 2008 18:05
and so what???