Golf ball pyramid

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

Build the square pyramid more than the specified height(mm).
How many golf balls?
The diameter of a golf ball is 42.67 mm.

Options

exec is denied

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

Sample input:_

6957
1875
1730
1262
8217
4937
6139
9630
1696
4910
1280
4971
2199
8493
5590
2131
7149
3115
6835
4181
1549
8076
6776
7013
7312
8473
6650
5784
4200
3727
7854
4294
8103
1441
8147
8501
820
4433
4628
7711
3281
6283
8227
9071
3809
2839
7298
4930
282
8660
6504
8672
3292
7768
5644
2210
5462
2525
636
5502
982
4804
77
3002
9830
3152
1607
2285
3625
851
8015
766
5379
1813
9576
2394
9569
198
3564
1808
6346
2572
2523
7119
8160
7046
7148
6729
1508
7354
8867
1385
8780
7858
4166
8764
6562
5779
1639
2488

Sample output:

4135516
81375
63365
25585
6744920
1483790
2850730
10871520
60116
1456894
27434
1511015
132349
7515065
2127685
121836
4465475
369564
3924830
904890
45526
6452234
3822225
4243629
4753485
7435541
3573570
2377760
904890
643250
5892510
964535
6524595
38024
6597495
7515065
6930
1069670
1205589
5625216
437635
3021304
6819449
9135651
674751
281295
4753485
1456894
285
7921200
3382596
8004144
437635
5757829
2197250
132349
1992991
201110
3311
2026115
12529
1352560
14
338350
11601851
391405
51039
149226
583220
7714
6309121
5525
1895789
73810
10668635
167480
10668635
140
554659
73810
3109085
208335
201110
4409306
6670936
4298385
4465475
3721424
42925
4872070
8513995
33511
8256446
5960631
885569
8256446
3477209
2377760
53955
194054

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1teebee440.01132012/04/07 00:22:260B / 29B / 14B
2@tttttanaka440.01542012/04/07 01:42:070B / 29B / 14B
3leonid440.01582012/04/17 03:50:570B / 29B / 14B
4primo450.02252012/04/07 03:15:390B / 22B / 21B
5clock460.04932012/04/16 23:11:200B / 28B / 16B
6primo (height:base is not correct500.01032012/04/06 23:55:380B / 24B / 23B

Perl _

RankUserSizeTimeDateStatistics
1tails450.01192012/04/07 06:42:050B / 17B / 28B
2teebee450.01142012/04/07 07:10:500B / 16B / 29B
3leonid460.02052012/04/17 04:27:100B / 15B / 29B
4nfouille510.13322012/04/12 04:52:440B / ?B / ?B
5macik600.03122012/04/13 23:03:190B / ?B / ?B

Python _

RankUserSizeTimeDateStatistics
1teebee510.10942012/04/07 00:26:170B / 31B / 19B
2primo510.02912012/04/07 03:14:420B / 31B / 19B
3leonid510.04922012/04/17 03:56:460B / 31B / 19B
4clock510.04652012/04/20 00:52:320B / 31B / 19B
5hallvabo530.05882012/04/16 22:46:370B / 32B / 20B

PHP _

RankUserSizeTimeDateStatistics
1clock590.03812012/04/18 22:53:181B / 30B / 28B
2teebee590.03372012/04/20 06:18:461B / 30B / 28B
3primo600.05432012/04/07 03:13:491B / 30B / 29B

Arc _

RankUserSizeTimeDateStatistics
1teebee511.37182012/04/07 06:29:140B / 27B / 21B

Io _

RankUserSizeTimeDateStatistics
1pooq860.13012012/04/07 11:37:310B / 61B / 21B
2teebee860.17832012/04/07 15:21:370B / 59B / 23B
3teebee(pooq)840.30792012/04/21 01:40:500B / 59B / 21B

JavaScript _

RankUserSizeTimeDateStatistics
1teebee510.09702012/04/07 05:29:310B / 29B / 22B
2clock510.03752012/04/16 22:59:090B / 29B / 22B

Lua _

RankUserSizeTimeDateStatistics
1teebee650.01212012/04/07 07:26:270B / 40B / 22B
2pooq660.15202012/04/07 21:25:030B / 41B / 24B

Xtal _

RankUserSizeTimeDateStatistics
1teebee720.16442012/04/07 03:12:100B / 38B / 31B
2pooq780.16302012/04/07 21:57:290B / 42B / 33B

Icon _

RankUserSizeTimeDateStatistics
1teebee720.04492012/04/17 01:26:010B / 46B / 23B
2clock720.02762012/04/17 09:10:200B / 44B / 25B
3pooq790.01522012/04/07 12:37:250B / 48B / 28B

REXX _

RankUserSizeTimeDateStatistics
1teebee580.07272012/04/20 14:32:120B / 35B / 17B

PARI/GP _

RankUserSizeTimeDateStatistics
1teebee440.15002012/04/07 08:51:460B / 29B / 15B

Prolog _

RankUserSizeTimeDateStatistics
1teebee700.13462012/04/13 05:12:060B / 36B / 33B

BASIC _

RankUserSizeTimeDateStatistics
1teebee530.15412012/04/13 04:52:240B / 31B / 22B
2pooq560.03952012/04/07 11:20:060B / 34B / 19B
3macik860.03362012/04/15 18:22:040B / ?B / ?B

J _

RankUserSizeTimeDateStatistics
1I., S.400.02002012/04/07 14:11:520B / 18B / 21B
2pooq440.04752012/04/07 15:39:350B / 19B / 24B

K _

RankUserSizeTimeDateStatistics
1teebee330.00972012/04/07 19:47:060B / 11B / 22B
2teebee320.00482012/07/02 09:31:010B / 12B / 20B

C _

RankUserSizeTimeDateStatistics
1teebee710.01112012/04/07 06:19:510B / 37B / 34B
2ush710.01532012/04/10 09:10:520B / 37B / 34B
3inaniwa710.01692012/04/10 16:07:370B / 37B / 34B
4clock720.01472012/04/20 00:59:450B / 37B / 35B
5eiyuu750.01382012/04/13 17:18:140B / 39B / 36B

D _

RankUserSizeTimeDateStatistics
1macik1290.01202012/04/15 17:37:500B / ?B / ?B

Haskell _

RankUserSizeTimeDateStatistics
1henkma600.19732012/04/18 21:33:440B / 40B / 19B
2rst76600.07342012/04/19 18:29:050B / 40B / 19B

Java _

RankUserSizeTimeDateStatistics
1teebee1440.11252012/04/07 09:56:450B / 91B / 47B

Pascal _

RankUserSizeTimeDateStatistics
1teebee990.00762012/04/12 10:37:520B / 67B / 28B

Fortran _

RankUserSizeTimeDateStatistics
1teebee610.00992012/04/07 06:10:100B / 34B / 26B

C# _

RankUserSizeTimeDateStatistics
1macik1610.19152012/04/15 17:50:100B / ?B / ?B

Maxima _

RankUserSizeTimeDateStatistics
1teebee540.64482012/04/07 15:04:490B / 33B / 21B
2pooq550.48752012/04/07 22:44:160B / 36B / 16B

Octave _

RankUserSizeTimeDateStatistics
1teebee540.24492012/04/12 04:30:350B / 36B / 17B
2inaniwa580.42702012/04/11 16:17:400B / 37B / 20B
3inaniwa(teebee)520.59752012/04/21 12:10:010B / 37B / 14B

Asymptote _

RankUserSizeTimeDateStatistics
1teebee590.12132012/04/07 05:43:330B / 33B / 25B

Euphoria _

RankUserSizeTimeDateStatistics
1clock1310.01762012/04/20 00:47:240B / 88B / 36B

AWK _

RankUserSizeTimeDateStatistics
1teebee400.01902012/04/19 15:50:500B / 19B / 21B
2yamaya440.01982012/04/19 15:57:210B / 19B / 25B
3teebee360.01432012/04/21 10:10:230B / 16B / 20B
4teebee(yamaya)370.01412012/04/21 10:07:140B / 16B / 21B

bc _

RankUserSizeTimeDateStatistics
1teebee570.05572012/04/20 14:27:430B / 28B / 28B
2teebee550.00922012/04/21 00:53:030B / 27B / 27B

dc _

RankUserSizeTimeDateStatistics
1tails330.05482012/04/07 08:24:550B / 20B / 13B

R _

RankUserSizeTimeDateStatistics
1teebee600.22722012/04/07 07:52:250B / 35B / 24B
2pooq610.21212012/04/07 13:53:330B / 35B / 26B

QCL _

RankUserSizeTimeDateStatistics
1teebee780.05632012/04/12 03:14:170B / 50B / 22B
2pooq830.04532012/04/11 20:27:400B / 52B / 25B

GolfScript _

RankUserSizeTimeDateStatistics
1tails260.06362012/04/07 09:17:080B / 10B / 16B
2macik450.09122012/04/16 05:30:430B / ?B / ?B

FlogScript _

RankUserSizeTimeDateStatistics
1milieu210.23662012/04/21 20:22:480B / ?B / ?B
2milieu(tails)210.17882012/04/21 20:23:300B / ?B / ?B

Vim _

RankUserSizeTimeDateStatistics
1clock550.10852012/04/16 23:42:289B / 25B / 19B

goruby _

RankUserSizeTimeDateStatistics
1leonid390.03562012/04/17 04:09:180B / 15B / 23B
2@tttttanaka400.05042012/04/07 01:43:170B / 20B / 20B

Groovy _

RankUserSizeTimeDateStatistics
1teebee691.47182012/04/07 07:47:050B / 47B / 21B
2clock711.11402012/04/16 23:58:200B / 49B / 20B

Logo _

RankUserSizeTimeDateStatistics
1teebee620.09352012/04/07 07:35:010B / 35B / 24B

Language Ranking_

RankLangUserSizeScore
1FlogScriptmilieu2110000
2GolfScripttails268076
3Kteebee326562
4dctails336363
5AWKteebee365833
6gorubyleonid395384
7JI., S.405250
8Rubyteebee444772
9PARI/GPteebee444772
10Perltails454666
11Pythonteebee514117
12JavaScriptteebee514117
13Arcteebee514117
14Octaveinaniwa(teebee)524038
15BASICteebee533962
16Maximateebee543888
17Vimclock553818
18bcteebee553818
19REXXteebee583620
20Asymptoteteebee593559
21PHPclock593559
22Rteebee603500
23Haskellhenkma603500
24Fortranteebee613442
25Logoteebee623387
26Luateebee653230
27Groovyteebee693043
28Prologteebee703000
29Cteebee712957
30Xtalteebee722916
31Iconteebee722916
32QCLteebee782692
33Ioteebee(pooq)842500
34Pascalteebee992121
35Dmacik1291627
36Euphoriaclock1311603
37Javateebee1441458
38C#macik1611304

return top