188D.md (546B)
1 Source: https://codeforces.com/problemset/problem/188/D 2 3 D. Asterisks 4 5 time limit per test 6 7 2 seconds 8 9 memory limit per test 10 11 256 megabytes 12 13 input 14 15 stdin 16 17 output 18 19 stdout 20 21 You are given a number *n*. Print *n* lines, *i*-th line should consist of *i* characters "*". Lines' indices are 1-based. 22 23 Input 24 25 The only line of input contains an integer *n* (1 ≤ *n* ≤ 50). 26 27 Output 28 29 Output the described pattern. 30 31 Examples 32 33 Input 34 35 ``` 36 3 37 ``` 38 39 Output 40 41 ``` 42 * 43 ** 44 *** 45 ``` 46 47 Input 48 49 ``` 50 6 51 ``` 52 53 Output 54 55 ``` 56 * 57 ** 58 *** 59 **** 60 ***** 61 ****** 62 ```