TopCoder

Thumb output jddoia
$\huge 南ことり$
$https://www.ototot.com.tw/TIOJ/ \\我要拿牌、去東京、變紅色,那就努力吧 \\ 確かな今よりも新しい夢つかまえたい$

User's AC Ratio

96.7% (146/151)

Submission's AC Ratio

68.6% (164/239)

Tags

Description

給你一個數字,請你參考範例輸入輸出的形式畫出星星。

Input Format

兩個正整數A,B(1<=A,B<=100, |A-B|<=20)

Output Format

請參考範例輸出。

Sample Input

Sample Input #1:
4 7

Sample Input #2:
10 1

Sample Output

Sample Output #1:
****
*****
******
*******

Sample Output #2:
**********
*********
********
*******
******
*****
****
***
**
*

Hints

※試著從範例輸入輸出當中尋找規律吧:)

Problem Source

原TIOJ1055 / C/C++程式設計入門。Problem Setter: Tmt

Subtasks

For Testdata: 0 ~ 0, Score: 25
For Testdata: 1 ~ 1, Score: 25
For Testdata: 2 ~ 2, Score: 25
For Testdata: 3 ~ 3, Score: 25
No. Time Limit (ms) Memory Limit (KiB) Output Limit (KiB)
0 1000 65536 65536
1 1000 65536 65536
2 1000 65536 65536
3 1000 65536 65536