|
|
вернуться в форумused algos I've read in one of the posts below that the problem is to be solved by recursive deleting of comments/arithmetics (at least i've got so). I suppose the problem is solvable with char-by-char reading. It's necessary to remember only one previous character and to update some conditions like "we are in comment", "we are in arithmetic expression", ... at the proper time. I've got AC with such an algo. |
|
|