← 返回 citadel 的题目列表Print a Message Repeatedly with Blank Lines
类型:online_judge
Problem
Implement print_message(n, message), which prints message exactly n times, with exactly one blank line between consecutive occurrences.
If n = 0, print nothing.
Do not print an additional blank line after the final occurrence.
Input Format
Standard input contains two lines:
Integer n
String message (may contain spaces)
Output Format
Print the requested messages.
Constraints
0 <= n <= 100000
message has length at most 10^4.
Example
Input:
3
hello world
Output:
hello world
hello world
hello world
Example
Input
0
hello