Author: | A. Klenin | Time limit: | 2 sec | |
Input file: | input.txt | Memory limit: | 8 Mb | |
Output file: | output.txt |
Text formatting functions (Format, sprintf, etc) are very common between programming languages. Your task is to implement a simplified one.
Formatting function receives format string and several arguments. Argument values are processed one by one and inserted into format string at positions designated by format specifiers. The following format specifiers must be implemented:
No. | Input file (input.txt ) |
Output file (output.txt ) |
---|---|---|
1 |
|
|
2 |
|
|
3 |
|
|