c418. Bert的三角形 (1)
Tags : for
Accepted rate : 5624人/5721人 ( 98% ) [非即時]
評分方式:
Tolerant

最近更新 : 2017-12-04 12:48

Content

Bert 想要一個 n 層的三角形,第 i 層就要有 i 個 " * "

請你寫個程式幫幫可憐的 Bert ~~

Input

單筆輸入~~

輸入只有一個整數 n (1 <= n <= 100)

Output

輸出整個三角形~~

 

Sample Input #1
3
Sample Output #1
*
**
***
測資資訊:
記憶體限制: 32 MB
公開 測資點#0 (10%): 1.0s , <1K
公開 測資點#1 (10%): 1.0s , <1K
公開 測資點#2 (10%): 1.0s , <1K
公開 測資點#3 (10%): 1.0s , <1K
公開 測資點#4 (10%): 1.0s , <1K
公開 測資點#5 (10%): 1.0s , <1K
公開 測資點#6 (20%): 1.0s , <1K
公開 測資點#7 (20%): 1.0s , <1K
Hint :
Tags:
for
出處:
[管理者: andy89923 (CTFang) ]

Status Forum 排行

ID User Problem Subject Hit Post Date
34563 yodayo (余) c418
138 2023-03-31 19:41
32337 jf5162287@gm ... (Reach the pinna...) c418
cpp
312 2022-09-30 23:33
31527 09360493@me. ... (pi_squareroot) c418
string 的3種宣告
228 2022-08-05 23:33
29209 alan8656 (阿伯) c418
430 2022-02-05 19:56
28990 wangwenlin09 ... (也是王玟晽) c418
也可以
322 2022-01-20 23:30