Double Period

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

Draw two periods of the wave (vertically) given its amplitude and period.

Options

exec is denied

now post-mortem time, all source codes will be revealed

Sample input:_

5 10

Sample output:

     *
        *
          *
          *
        *
      *
   *
 *
 *
   *
     *
        *
          *
          *
        *
      *
   *
 *
 *
   *

Sample input:_

10 30

Sample output:

          *
             *
               *
                *
                  *
                   *
                    *
                    *
                    *
                    *
                   *
                  *
                *
               *
             *
           *
        *
      *
     *
   *
  *
 *
 *
 *
 *
  *
   *
     *
      *
        *
          *
             *
               *
                *
                  *
                   *
                    *
                    *
                    *
                    *
                   *
                  *
                *
               *
             *
           *
        *
      *
     *
   *
  *
 *
 *
 *
 *
  *
   *
     *
      *
        *

Sample input:_

21 52

Sample output:

                     *
                        *
                           *
                             *
                               *
                                 *
                                   *
                                     *
                                       *
                                        *
                                         *
                                          *
                                          *
                                          *
                                          *
                                          *
                                         *
                                        *
                                       *
                                     *
                                   *
                                 *
                               *
                             *
                           *
                        *
                      *
                   *
                *
              *
            *
          *
        *
      *
    *
   *
  *
 *
 *
 *
 *
 *
  *
   *
    *
      *
        *
          *
            *
              *
                *
                   *
                     *
                        *
                           *
                             *
                               *
                                 *
                                   *
                                     *
                                       *
                                        *
                                         *
                                          *
                                          *
                                          *
                                          *
                                          *
                                         *
                                        *
                                       *
                                     *
                                   *
                                 *
                               *
                             *
                           *
                        *
                      *
                   *
                *
              *
            *
          *
        *
      *
    *
   *
  *
 *
 *
 *
 *
 *
  *
   *
    *
      *
        *
          *
            *
              *
                *
                   *

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1jpl840.03422013/05/02 23:36:090B / ?B / ?B

Perl _

RankUserSizeTimeDateStatistics
1whio530.03512013/05/09 07:42:270B / 18B / 33B
2brx530.02612013/05/11 02:22:520B / 15B / 36B
3teebee540.03402013/05/04 18:48:320B / 15B / 37B
4brx(alt)560.05052013/05/03 03:08:590B / 17B / 37B
5primo570.03392013/05/03 17:44:290B / 18B / 36B
6brx(whio)520.03672013/05/14 01:00:250B / 19B / 31B

Python _

RankUserSizeTimeDateStatistics
1rolf1090.17542013/04/29 00:33:220B / 65B / 38B

JavaScript _

RankUserSizeTimeDateStatistics
1copy1010.06542013/04/30 02:52:500B / ?B / ?B
2Shmiddty1010.06432013/04/30 07:00:530B / 56B / 44B
3Shmiddty1000.07112013/05/11 07:11:550B / 53B / 45B

Lua _

RankUserSizeTimeDateStatistics
1Hendrik930.03282013/04/27 19:27:480B / 54B / 35B

J _

RankUserSizeTimeDateStatistics
1I., S.740.14632013/05/11 06:45:470B / 24B / 47B
2I., S.(6.283)480.08262013/05/11 17:48:460B / 13B / 34B

C _

RankUserSizeTimeDateStatistics
1TokusiN940.03212013/04/27 12:14:340B / 48B / 46B

Haskell _

RankUserSizeTimeDateStatistics
1henkma940.03502013/05/04 08:20:510B / 49B / 41B
2rst76970.03622013/05/04 01:58:040B / 50B / 43B

Postscript _

RankUserSizeTimeDateStatistics
1rolf2460.48412013/04/29 01:26:150B / 153B / 28B
2zzo38(based on rolf)1060.22892022/01/13 13:31:450B / 71B / 25B

Language Ranking_

RankLangUserSizeScore
1JI., S.(6.283)4810000
2Perlbrx(whio)529230
3Rubyjpl845714
4LuaHendrik935161
5CTokusiN945106
6Haskellhenkma945106
7JavaScriptShmiddty1004800
8Postscriptzzo38(based on rolf)1064528
9Pythonrolf1094403

return to the top page