2189 问题 J: diamond

时间限制: 1s 内存限制: 128MB 提交: 154 解决: 98
题目描述
There was a girl whose name is Crystal, and she love diamond shape so much. One day, she learned how to use computer. Without hesitation, she ask you to write a program to draw diamond for her.
输入
a single number from the user n, where n is an odd number between 3 and 19
输出
a diamond that is n characters wide and high
样例输入
3
样例输出
 *
***
 *
提示
零基础同学可以先学习视频课程,包含C/C++、Python、百练、蓝桥杯辅导、算法数据结构等课程,提供视频讲解以及配套习题,还有老师答疑,点击这里了解课程详情

比赛公告

训练赛要求同学们独立完成,不借助任何外界资料,坚决杜绝把百度结果直接提交的同学,一旦发现取消所有参赛资格,并上报学院相关领导,请同学们诚信为本!