simple rainbow

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

Print a simple RGB rainbow of the given size.

Options

exec is denied

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

Sample input:_

3

Sample output:

   RRRRRR
  RGGGGGGR
 RGBBBBBBGR
RGB      BGR
GB        BG
B          B

Sample input:_

7

Sample output:

       RRRRRRRRRRRRRR
      RGGGGGGGGGGGGGGR
     RGBBBBBBBBBBBBBBGR
    RGB              BGR
   RGB                BGR
  RGB                  BGR
 RGB                    BGR
RGB                      BGR
GB                        BG
B                          B

Sample input:_

17

Sample output:

                 RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
                RGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGR
               RGBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBGR
              RGB                                  BGR
             RGB                                    BGR
            RGB                                      BGR
           RGB                                        BGR
          RGB                                          BGR
         RGB                                            BGR
        RGB                                              BGR
       RGB                                                BGR
      RGB                                                  BGR
     RGB                                                    BGR
    RGB                                                      BGR
   RGB                                                        BGR
  RGB                                                          BGR
 RGB                                                            BGR
RGB                                                              BGR
GB                                                                BG
B                                                                  B

Ranking

Perl _

RankUserSizeTimeDateStatistics
1tails590.04382012/09/30 01:58:360B / 28B / 28B
2smkt3490.04082012/09/25 13:47:150B / 157B / 187B

Python _

RankUserSizeTimeDateStatistics
1clock890.06402012/09/25 14:10:350B / 44B / 39B

Io _

RankUserSizeTimeDateStatistics
1pooq1690.26172012/10/01 13:59:550B / 115B / 43B

J _

RankUserSizeTimeDateStatistics
1I., S.540.09212012/09/27 06:48:070B / 23B / 30B

C _

RankUserSizeTimeDateStatistics
1nu1350.03202012/10/01 14:23:120B / 69B / 65B
2ush1400.03342012/10/01 13:53:020B / 69B / 70B
3smkt (test)3310.03172012/09/25 02:37:340B / 150B / 168B
4smkt3330.03252012/09/25 02:36:280B / 150B / 170B
5nu1260.03182012/10/04 10:10:220B / 62B / 63B
6Kipa003810.03202012/10/17 19:05:125B / ?B / ?B

C++ _

RankUserSizeTimeDateStatistics
1Vim Lover2850.03232016/12/13 04:55:350B / ?B / ?B
2potato3570.03272016/12/13 04:58:250B / ?B / ?B

C# _

RankUserSizeTimeDateStatistics
1RayZ3820.14892012/10/01 02:02:010B / ?B / ?B

sed _

RankUserSizeTimeDateStatistics
1clock840.03542012/10/01 09:36:030B / 35B / 34B
2tails860.03482012/09/30 01:06:350B / 29B / 42B
3clock(tails)820.02642012/10/01 14:45:030B / 36B / 31B

GolfScript _

RankUserSizeTimeDateStatistics
1tails480.17592012/09/30 02:06:510B / 13B / 31B

Vim _

RankUserSizeTimeDateStatistics
1udioica350.05232017/05/27 23:29:274B / 14B / 13B

Language Ranking_

RankLangUserSizeScore
1Vimudioica3510000
2GolfScripttails487291
3JI., S.546481
4Perltails595932
5sedclock(tails)824268
6Pythonclock893932
7Cnu1262777
8Iopooq1692071
9C++Vim Lover2851228
10C#RayZ382916

return top