Problem2799--字符长方形

2799: 字符长方形

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 112  Solved: 83
[Status] [Submit] [Creator:]

Description

输出一个 n 行 m 列的字符长方形。其中除了最中间的一个字符是 'Q';其它字符都是 '#'。

Input

一行,两个整数 n 和 m(3 ≤ n,m ≤ 99 且 n,m 均为奇数)。

Output

按照题目要求输出对应的字符长方形。  

Sample Input Copy

5 13

Sample Output Copy

#############
#############
######Q######
#############
#############

Source/Category