|
Time |
Memory |
| Case 1 |
1 sec |
32 MB |
| Case 2 |
1 sec |
32 MB |
Description
Draw a filled isosceles triangle using for loop and asterisk character:
*
***
*****
*******
*********
Input : H (the height of the isosceles triangle)
Output : The filled isosceles (每一行的最後一個星號輸出後面都沒有換行,也沒有空白等字元)
Input
Output
Tags