#685. python-星星的组合形状-输入星星形状层数n(下图n=5),用星星(*)或其他单个符号m(下图m="*")打印如下图形
python-星星的组合形状-输入星星形状层数n(下图n=5),用星星(*)或其他单个符号m(下图m="*")打印如下图形
Background
Description
输入星星形状层数n(下图n=5),用星星()或其他单个符号m(下图m="")打印如下图形(其中星星的数量是1,3,5... ...)
Format
Input
Output
Samples
5
*
*********
******* *
***** ***
*** *****
* *******
* *******
*** *****
***** ***
******* *
*********
3
&
&&&&&
&&& &
& &&&
& &&&
&&& &
&&&&&
10
$
$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$ $
$$$$$$$$$$$$$$$ $$$
$$$$$$$$$$$$$ $$$$$
$$$$$$$$$$$ $$$$$$$
$$$$$$$$$ $$$$$$$$$
$$$$$$$ $$$$$$$$$$$
$$$$$ $$$$$$$$$$$$$
$$$ $$$$$$$$$$$$$$$
$ $$$$$$$$$$$$$$$$$
$ $$$$$$$$$$$$$$$$$
$$$ $$$$$$$$$$$$$$$
$$$$$ $$$$$$$$$$$$$
$$$$$$$ $$$$$$$$$$$
$$$$$$$$$ $$$$$$$$$
$$$$$$$$$$$ $$$$$$$
$$$$$$$$$$$$$ $$$$$
$$$$$$$$$$$$$$$ $$$
$$$$$$$$$$$$$$$$$ $
$$$$$$$$$$$$$$$$$$$
Limitation
1s, 1024KiB for each test case.