Saving Time

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

from the other codegulf.

In this challenge you must draw an analogue clock face, using the time provided to you in 24-hour digital format.

Each hour mark should be drawn with 'o' (Lower-case O).

The hour mark representing the hour given in the input should be drawn with an 'h'.

The hour mark representing the minute given in the input should be drawn with an 'm'.

If the hour and the minute both fall on the same mark, then you should draw it with an 'x'.

You should round down the minutes past the hour to the nearest 5 for the purposes of marking it on the clock (so 23 becomes 20, 39 becomes 35).

Options

exec is denied

no deadline, the server will not save your submission

Sample input:_

18:00

Sample output:

        m
    o       o

 o             o

o               o

 o             o

    o       o
        h

Sample input:_

12:00

Sample output:

        x
    o       o

 o             o

o               o

 o             o

    o       o
        o

Sample input:_

03:03

Sample output:

        m
    o       o

 o             o

o               h

 o             o

    o       o
        o

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1eyepopslikeamosquito1070.07532012/04/14 16:36:317B / ?B / ?B
2migo1360.05222011/12/29 03:06:300B / 66B / 67B
3mizuno1490.06712011/12/27 22:59:245B / 61B / 81B
4bk1e1780.05212011/12/03 17:24:160B / 92B / 83B
5pace_t_zulu1960.05402011/12/05 00:47:190B / 108B / 81B
6deadwards3270.08262011/12/06 03:53:030B / ?B / ?B

Perl _

RankUserSizeTimeDateStatistics
1eyepopslikeamosquito930.03352014/04/22 18:57:1245B / ?B / ?B
2migo1280.04402011/12/29 03:22:320B / 44B / 66B
3:)1920.04442011/11/30 09:06:540B / 74B / 79B
4smkt5270.09712011/11/30 14:55:157B / ?B / ?B

Python _

RankUserSizeTimeDateStatistics
1hallvabo1250.08702015/07/16 04:03:264B / 65B / 51B
2eyepopslikeamosquito1270.08332012/04/14 16:36:004B / ?B / ?B
3Doug L2440.07292012/03/01 06:59:030B / ?B / ?B
41st-timer3810.54242011/12/14 18:12:3115B / ?B / ?B

PHP _

RankUserSizeTimeDateStatistics
1eyepopslikeamosquito1240.19532012/04/14 16:36:1732B / ?B / ?B
2Kalindor2250.83512012/02/15 21:02:260B / 75B / 110B

Scheme _

RankUserSizeTimeDateStatistics
1kaki1350.13812011/11/30 10:52:560B / 60B / 54B

Common LISP _

RankUserSizeTimeDateStatistics
1ttmh1200.03762014/09/01 18:18:180B / 60B / 47B

Io _

RankUserSizeTimeDateStatistics
1pooq2540.23062012/11/24 01:29:100B / 110B / 88B

JavaScript _

RankUserSizeTimeDateStatistics
1Tomac1850.06812011/12/18 12:01:190B / ?B / ?B

BASIC _

RankUserSizeTimeDateStatistics
1pooq1940.15712011/12/12 14:14:280B / 67B / 91B

J _

RankUserSizeTimeDateStatistics
1I., S.800.11302011/11/23 22:09:117B / 27B / 45B
2I., S.(nobin)940.08982011/11/20 19:28:580B / 34B / 58B

C _

RankUserSizeTimeDateStatistics
1bk1e2020.03972011/12/03 17:14:260B / 106B / 95B
2smkt3470.03172012/10/20 15:28:100B / 158B / 187B

Haskell _

RankUserSizeTimeDateStatistics
1henkma1330.11562012/01/29 10:29:410B / 84B / 47B
2rst761420.04232011/11/24 17:42:250B / 68B / 65B

Pascal _

RankUserSizeTimeDateStatistics
1*yuko*1340.05662011/11/19 18:39:300B / 61B / 57B

Fortran _

RankUserSizeTimeDateStatistics
1*yuko*1200.05002011/11/19 18:00:130B / 74B / 44B

sed _

RankUserSizeTimeDateStatistics
1lvogel1540.05672012/01/10 20:46:578B / ?B / ?B
2:)2660.04272011/11/18 22:57:230B / 133B / 100B

Bash _

RankUserSizeTimeDateStatistics
1:)1970.04472011/11/18 22:56:350B / 80B / 73B
2mute2260.04902011/11/17 22:26:290B / 94B / 99B

Vim _

RankUserSizeTimeDateStatistics
1clock760.08962012/01/05 01:19:016B / 46B / 22B

Groovy _

RankUserSizeTimeDateStatistics
1nn1402.91002011/11/27 14:02:470B / 47B / 76B

Language Ranking_

RankLangUserSizeScore
1Vimclock7610000
2JI., S.809500
3Perleyepopslikeamosquito938172
4Rubyeyepopslikeamosquito1077102
5Fortran*yuko*1206333
6Common LISPttmh1206333
7PHPeyepopslikeamosquito1246129
8Pythonhallvabo1256080
9Haskellhenkma1335714
10Pascal*yuko*1345671
11Schemekaki1355629
12Groovynn1405428
13sedlvogel1544935
14JavaScriptTomac1854108
15BASICpooq1943917
16Bash:)1973857
17Cbk1e2023762
18Iopooq2542992

return top