Resistor color code

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

Output the 3/4-band color code for each resistor value.

Options

exec is denied

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

Sample input:_

530
120000
9600000
5200000
100000
9200000
400000
6500
94000
9800000
79000
75000
62
610000
32000
150
93
9700000
6000
150000
6200000
1600000
6000000
3300000
41
63
820000
820
460
2300
210
34
2600000
9300
100
57000
570
6600
930
30
52
6400
1500
26000
48000
62000
55000
280
2100
9000000
85000
670000
59
940
890
80
3100
560000
1700
58
130
5400
140000
4300000
8100000
330
360000
6600
510000
69
8900000
16000
660
850000
2300000
6900
5500
8000000
25
490000
8600
9800000
3200000
8000000
91000
15
46
6300
44
65
6900000
20
62000
64000
8200

Sample output:

Green-Orange-Brown
Brown-Red-Yellow
White-Blue-Green
Green-Red-Green
Brown-Black-Yellow
White-Red-Green
Yellow-Black-Yellow
Blue-Green-Red
White-Yellow-Orange
White-Grey-Green
Violet-White-Orange
Violet-Green-Orange
Blue-Red-Black
Blue-Brown-Yellow
Orange-Red-Orange
Brown-Green-Brown
White-Orange-Black
White-Violet-Green
Blue-Black-Red
Brown-Green-Yellow
Blue-Red-Green
Brown-Blue-Green
Blue-Black-Green
Orange-Orange-Green
Yellow-Brown-Black
Blue-Orange-Black
Grey-Red-Yellow
Grey-Red-Brown
Yellow-Blue-Brown
Red-Orange-Red
Red-Brown-Brown
Orange-Yellow-Black
Red-Blue-Green
White-Orange-Red
Brown-Black-Brown
Green-Violet-Orange
Green-Violet-Brown
Blue-Blue-Red
White-Orange-Brown
Orange-Black-Black
Green-Red-Black
Blue-Yellow-Red
Brown-Green-Red
Red-Blue-Orange
Yellow-Grey-Orange
Blue-Red-Orange
Green-Green-Orange
Red-Grey-Brown
Red-Brown-Red
White-Black-Green
Grey-Green-Orange
Blue-Violet-Yellow
Green-White-Black
White-Yellow-Brown
Grey-White-Brown
Grey-Black-Black
Orange-Brown-Red
Green-Blue-Yellow
Brown-Violet-Red
Green-Grey-Black
Brown-Orange-Brown
Green-Yellow-Red
Brown-Yellow-Yellow
Yellow-Orange-Green
Grey-Brown-Green
Orange-Orange-Brown
Orange-Blue-Yellow
Blue-Blue-Red
Green-Brown-Yellow
Blue-White-Black
Grey-White-Green
Brown-Blue-Orange
Blue-Blue-Brown
Grey-Green-Yellow
Red-Orange-Green
Blue-White-Red
Green-Green-Red
Grey-Black-Green
Red-Green-Black
Yellow-White-Yellow
Grey-Blue-Red
White-Grey-Green
Orange-Red-Green
Grey-Black-Green
White-Brown-Orange
Brown-Green-Black
Yellow-Blue-Black
Blue-Orange-Red
Yellow-Yellow-Black
Blue-Green-Black
Blue-White-Green
Red-Black-Black
Blue-Red-Orange
Blue-Yellow-Orange
Grey-Red-Red

Sample input:_

560
470
47
8
190
9400
15k
22k
15000
680
68
47000
1000
10M
6
4.7
6.8
3.3
200
.47
9400
3.3k
.22
.20
91
1500
63
1.5M
880000
125
12.5k
22500
565000
1.25
825k
3.75M
333k
4.52
123000
5

Sample output:

Green-Blue-Brown
Yellow-Violet-Brown
Yellow-Violet-Black
Grey-Black-Gold
Brown-White-Brown
White-Yellow-Red
Brown-Green-Orange
Red-Red-Orange
Brown-Green-Orange
Blue-Grey-Brown
Blue-Grey-Black
Yellow-Violet-Orange
Brown-Black-Red
Brown-Black-Blue
Blue-Black-Gold
Yellow-Violet-Gold
Blue-Grey-Gold
Orange-Orange-Gold
Red-Black-Brown
Yellow-Violet-Silver
White-Yellow-Red
Orange-Orange-Red
Red-Red-Silver
Red-Black-Silver
White-Brown-Black
Brown-Green-Red
Blue-Orange-Black
Brown-Green-Green
Grey-Grey-Yellow
Brown-Red-Green-Black
Brown-Red-Green-Red
Red-Red-Green-Red
Green-Blue-Green-Orange
Brown-Red-Green-Silver
Grey-Red-Green-Orange
Orange-Violet-Green-Yellow
Orange-Orange-Orange-Orange
Yellow-Green-Red-Silver
Brown-Red-Orange-Orange
Green-Black-Gold

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1jpl1740.05942014/06/30 20:15:300B / ?B / ?B
2bk1e2350.02752014/07/10 14:35:460B / 136B / 76B
3mitchs (jpl)1690.02352014/07/12 05:39:510B / 99B / 53B

Perl _

RankUserSizeTimeDateStatistics
1brx1460.02532014/07/11 06:06:120B / 84B / 60B
2whio1500.02382014/07/01 06:13:490B / 90B / 59B
3teebee(brx,whio)1400.02302014/07/12 19:10:270B / 80B / 58B
4brx1450.07502014/07/12 06:22:030B / 84B / 59B
5whio(brx)1460.02642014/07/12 00:48:530B / 81B / 63B
6brx(whio$<)1490.05642014/07/11 22:56:300B / 87B / 61B

Python _

RankUserSizeTimeDateStatistics
1hallvabo2340.06292014/07/03 08:50:480B / 142B / 71B
2rolf2600.06282014/07/03 03:28:530B / 159B / 81B
3mitchs (hallvabo)2330.06412014/07/12 06:10:370B / 142B / 70B

JavaScript _

RankUserSizeTimeDateStatistics
1_nderscore (embed)6400.02432014/06/29 00:07:090B / 446B / 191B

J _

RankUserSizeTimeDateStatistics
1I., S.1670.09052014/07/04 11:33:380B / 102B / 59B

Haskell _

RankUserSizeTimeDateStatistics
1Icewing2860.02652014/07/10 02:59:480B / 165B / 91B

R _

RankUserSizeTimeDateStatistics
1NikNakk2910.27052014/07/03 20:04:520B / 152B / 132B

Language Ranking_

RankLangUserSizeScore
1Perlteebee(brx,whio)14010000
2JI., S.1678383
3Rubymitchs (jpl)1698284
4Pythonmitchs (hallvabo)2336008
5HaskellIcewing2864895
6RNikNakk2914810
7JavaScript_nderscore (embed)6402187

return top