| Description The original output produced by a program is a stream
contains several data records of the form X1=Y1,
and two adjacent records are separated by one space.
Since the stream is too long, we wrote another program to add newline
characters to split it to lines.
Unfortunately, the program places most newline characters at the wrong positions, producing an unacceptable file. In the following raw input, we use to stand for a space. Note that Line 1 does not contain a trailing space but Line 2 does, since the trailing space is used to separate B=115 and C=1.46 in the stream. What we want is reformatting the unacceptable file so that each line contains exactly one record. | ||||||
| ||||||
Script and Comments
|