2D Mountains

In the computer game the company develops, the next thing they want to model is a simple background for one of the scenes. It contains two gorgeous mountains.
As the resources are limited, they would like to model those mountains as a collection of * symbols.
Your task is to write a program that would print the following mountains:
      *
     ***
    ******    *
   ********  ***
  ****************
 ******************
********************
Note that you shouldn't print trailing spaces. The last character of each line should be an asterisk (*).
 

Constraints

Time limit: 2 seconds

Memory limit: 512 MB

Output limit: 1 MB

To check your solution you need to sign in
Sign in to continue