摘要:
Description 问题:输入n,输出正倒n层星号三角形。首行顶格,星号间有一空格,效果见样例 输入样例: 3 输出样例: * * * * * * * * * * * 数据规模 1<= n <=50 idea 三角形不是空心的,也不是完全实心正负对角线围起来的区域,奇数行的奇数列 或 偶数行的偶 阅读全文
摘要:
Description 请输入高度h,输入一个高为h,上底边长为h 的等腰梯形(例如h=4,图形如下)。 **** ****** ******** ********** Input 输入第一行表示样例数m,接下来m行每行一个整数h,h不超过10。 Output 对应于m个case输出要求的等腰梯形。 阅读全文
摘要:
Description 输入一个高度h,输出一个高为h,上底边为h的梯形。 Input 一个整数h(1<=h<=1000)。 Output h所对应的梯形。 Sample Input Copy 5 Sample Output Copy ***** ******* ********* ******** 阅读全文
摘要:
Given any string of N (>=5) characters, you are asked to form the characters into the shape of U. For example, “helloworld” can be printed as: h d e l 阅读全文