About Fmt ¶
fmt๋ผ๋ ์ ๋์ค ํ๋ก๊ทธ๋จ์ ํ
์คํธ๋ฅผ ์ฝ์ด์จ ๋ค์ ์ ๋นํ ์ฐ๊ฒฐํ๊ฑฐ๋ ๋์ด์ ๋ชจ๋ ํ์ ๊ธธ์ด๊ฐ 72๊ธ์๋ ๋์ง ์์ง๋ง ์ต๋ํ 72๊ธ์์ ๊ฐ๊น์ด ์ถ๋ ฅ ํ์ผ์ ๋ง๋ค์ด๋ธ๋ค. ํ์ ์ฐ๊ฒฐํ๊ฑฐ๋ ๋์ ๋๋ ๋ค์๊ณผ ๊ฐ์ ๊ท์น์ ๋ฐ๋ฅธ๋ค.
{{|
์ ๋ ฅ ํ ์คํธ์ ํญ ๋ฌธ์๋ ์๋ค๊ณ ๊ฐ์ ํด๋ ๋๋ค.
{{|
- ์
๋ ฅ์ ๊ณต๋ฐฑ์ด ์์ผ๋ฉด ์ด๋์๋ ์ง ์๋ก์ด ์ค์ ์์ํ ์ ์๋ค. ์๋ก์ด ์ค์ด ์์๋๋ฉด ์ ์ค์ ๋งจ ๋ค ๋ฐ ์ค์ ๋งจ ์์ ์๋ ๊ณต๋ฐฑ์ ๋ชจ๋ ์ ๊ฑฐ๋๋ค.
- ์
๋ ฅ๋ ์ค๋ฐ๊ฟ ๋ฌธ์ ๊ฐ์ด๋ฐ (1) ๋น ์ค ๋๋ ๊ณต๋ฐฑ๋ง ๋ค์ด์๋ ์ค ๋์ ์๋ ๊ฒ๊ณผ (2) ๊ทธ ๋ค์ ์คํ์ด์ค ๋๋ ๋ค๋ฅธ ์ค๋ฐ๊ฟ ๋ฌธ์๊ฐ ์๋ ๊ฒ์ ์ ์ธํ ๋ชจ๋ ์ค๋ฐ๊ฟ ๋ฌธ์๋
- ์ถ๋ ฅ๋๋ ์ค์ ๋งจ ๋ค์ ์๋ ์คํ์ด์ค๋ ๋ชจ๋ ์ญ์ ๋๋ค.
- 72๊ธ์๊ฐ ๋๋ ๋จ์ด๊ฐ ์์ผ๋ฉด ํ ์ค์ ๊ทธ ๋จ์ด ํ๋๋ง ์ถ๋ ฅํ๋ค.
์ ๋ ฅ ํ ์คํธ์ ํญ ๋ฌธ์๋ ์๋ค๊ณ ๊ฐ์ ํด๋ ๋๋ค.
Sample Input ¶
{{|
The unix fmt program reads lines of text, combining
and breaking lines so as to create an
output file with lines as close to without exceeding
72 characters long as possible. The rules for combining and breaking
lines are as follows.
If a new line is started, there will be no trailing blanks at the
end of the previous line or at the beginning of the new line.
it is not followed by a space or another line break. If a line
break is eliminated, it is replaced by a space.
|}}
Unix fmt
and breaking lines so as to create an
output file with lines as close to without exceeding
72 characters long as possible. The rules for combining and breaking
lines are as follows.
- A new line may be started anywhere there is a space in the input.
end of the previous line or at the beginning of the new line.
- A line break in the input may be eliminated in the output, provided
break is eliminated, it is replaced by a space.
|}}
Sample Output ¶
{{|
The unix fmt program reads lines of text, combining and breaking lines
so as to create an output file with lines as close to without exceeding
72 characters long as possible. The rules for combining and breaking
lines are as follows.
If a new line is started, there will be no trailing blanks at the end of
the previous line or at the beginning of the new line.
provided it is not followed by a space or another line break. If a line
break is eliminated, it is replaced by a space.
|}}
Unix fmt
so as to create an output file with lines as close to without exceeding
72 characters long as possible. The rules for combining and breaking
lines are as follows.
- A new line may be started anywhere there is a space in the input.
the previous line or at the beginning of the new line.
- A line break in the input may be eliminated in the output,
break is eliminated, it is replaced by a space.
|}}
ํ์ด ¶
์์ฑ์ | ์ฌ์ฉ์ธ์ด | ๊ฐ๋ฐ์๊ฐ | ์ฝ๋ |
๋ฌธ๋ณด์ฐฝ | C++ | . | Fmt/๋ฌธ๋ณด์ฐฝ |