Compound interest

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

*** IMPORTANT NOTICE - PLEASE READ ***

This problem is for the golf competition event in Ruby Kaigi (http://jp.rubyist.net/RubyKaigi2008/?Golf). Please don't submit your code until Fri Jun 20 09:00:00 UTC 2008 (1213952400 in unix time) not to scare "ordinary" people by your amazing score :) English problem description follows.

For people who are attending Ruby Kaigi: please use (kaigi) suffix for your name, or you cannot get the award of the competition.

この問題は日本 Ruby 会議 2008 のゴルフコンペティション向けに作られた問題です。本職のゴルファーの方は 18:00 まで投稿を控えていただければありがたいです。本職でなければ Ruby 会議にいらっしゃらない方も投稿していただいて結構です。

Ruby 会議に参加している方は、 (kaigi) というサフィックスを名前につけて投稿するようにして下さい。そうしないと賞品がもらえませんのでご注意を。

=== 問題 ===

複利計算をする問題です。入力は <回数>:<初期値>:<パーセント> です。
計算途中の小数値は全て切り捨てて下さい。

=== Problem description ===

Let's calculate compound interest. The format of the input is
::. Please ignore values less than 1 in
each iteration.

Options

exec is denied

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

Sample input:_

20:100:5

Sample output:

100
105
110
115
120
126
132
138
144
151
158
165
173
181
190
199
208
218
228
239

Sample input:_

52:10000:10

Sample output:

10000
11000
12100
13310
14641
16105
17715
19486
21434
23577
25934
28527
31379
34516
37967
41763
45939
50532
55585
61143
67257
73982
81380
89518
98469
108315
119146
131060
144166
158582
174440
191884
211072
232179
255396
280935
309028
339930
373923
411315
452446
497690
547459
602204
662424
728666
801532
881685
969853
1066838
1173521
1290873

Sample input:_

100:10000:1

Sample output:

10000
10100
10201
10303
10406
10510
10615
10721
10828
10936
11045
11155
11266
11378
11491
11605
11721
11838
11956
12075
12195
12316
12439
12563
12688
12814
12942
13071
13201
13333
13466
13600
13736
13873
14011
14151
14292
14434
14578
14723
14870
15018
15168
15319
15472
15626
15782
15939
16098
16258
16420
16584
16749
16916
17085
17255
17427
17601
17777
17954
18133
18314
18497
18681
18867
19055
19245
19437
19631
19827
20025
20225
20427
20631
20837
21045
21255
21467
21681
21897
22115
22336
22559
22784
23011
23241
23473
23707
23944
24183
24424
24668
24914
25163
25414
25668
25924
26183
26444
26708

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1kinaba490.18962008/06/20 18:04:350B / 21B / 24B
2ksk490.14742008/06/20 18:34:570B / 21B / 23B
3yvl510.11922008/06/20 18:03:220B / 25B / 25B
4shinh510.24052008/06/20 18:04:200B / 21B / 29B
5usa (kaigi)510.30832008/06/20 18:10:400B / ?B / ?B
6nanki(kaigi)510.17512008/06/20 18:33:430B / ?B / ?B
7eban(kaigi)520.12122008/06/20 18:00:570B / 25B / 26B
8znz (kaigi)520.15642008/06/20 18:26:440B / 25B / 26B
9tarui530.10562008/06/20 18:05:520B / 27B / 25B
10tal530.12582008/06/20 18:45:060B / 27B / 25B
11yowa540.17862008/06/20 18:10:220B / 24B / 28B
12kstn540.09462008/06/20 18:17:370B / ?B / ?B
13zenpou540.17372008/06/20 18:56:480B / 30B / 22B
14stsuboi570.13412008/06/20 17:12:200B / ?B / ?B
15tommy (kaigi)570.28292008/06/20 17:38:550B / ?B / ?B
16hidenba(kaigi)580.12942008/06/20 18:36:180B / ?B / ?B
17thata(kaigi)580.15042008/06/20 18:36:300B / ?B / ?B
18date (kaigi)590.13212008/06/20 15:23:021B / ?B / ?B
19ko1 (kaigi)600.24822008/06/20 15:20:090B / ?B / ?B
20koic600.13232008/06/20 16:39:080B / ?B / ?B
21naoya_t (kaigi)600.16402008/06/20 17:13:010B / 34B / 25B
22taninsw(kaigi)600.17152008/06/20 18:13:230B / ?B / ?B
23ken1_esm610.21392008/06/20 14:57:430B / ?B / ?B
24yugui610.15872008/06/20 17:20:450B / ?B / ?B
25yugui (kaigi)610.15632008/06/20 17:20:520B / ?B / ?B
26gugod (kaigi)610.12422008/06/20 18:15:210B / ?B / ?B
27s1061123610.13692008/06/20 18:52:011B / ?B / ?B
28cuzic610.21282008/06/20 18:53:041B / ?B / ?B
29m4i (kaigi)630.15002008/06/20 17:38:580B / ?B / ?B
30hajimehoshi (kaigi)630.21872008/06/20 18:24:540B / ?B / ?B
31hogelog640.21242008/06/20 17:59:060B / 35B / 28B
32idesaku (kaigi)640.07972008/06/20 18:22:480B / 37B / 23B
33okkez(kaigi)660.15422008/06/20 17:35:460B / ?B / ?B
34YaSuYuKi (kaigi)660.14812008/06/20 18:34:292B / ?B / ?B
35no6v670.15942008/06/20 15:11:440B / 36B / 29B
36ogura_m670.16932008/06/20 18:17:590B / ?B / ?B
37sento670.09332008/06/20 18:54:590B / ?B / ?B
38k-chiba670.09482008/06/20 18:55:520B / 38B / 26B
39par700.16472008/06/20 12:50:280B / ?B / ?B
40yhara700.14032008/06/20 17:30:001B / ?B / ?B
41thata710.09222008/06/20 17:35:471B / ?B / ?B
42ienaga730.13612008/06/20 18:11:010B / ?B / ?B
43nanki740.23002008/06/20 17:18:471B / ?B / ?B
44gunjisatoshi (kaigi)740.22402008/06/20 18:06:441B / ?B / ?B
45_750.14942008/06/20 16:41:365B / ?B / ?B
46m_pixy750.18352008/06/20 17:24:422B / ?B / ?B
47kdmsnr760.11982008/06/20 15:47:390B / ?B / ?B
48 moro(kaigi)760.13322008/06/20 16:45:242B / ?B / ?B
49amapyon760.11622008/06/20 18:28:430B / ?B / ?B
50takemoto(kaigi)770.06742008/06/20 18:04:480B / ?B / ?B
51kawabata(kaigi)780.13302008/06/20 18:40:450B / ?B / ?B
52g5n (kaigi)790.10892008/06/20 14:14:192B / 44B / 30B
53uru790.20852008/06/20 18:30:130B / ?B / ?B
54 gugod (kaigi)800.11842008/06/20 15:53:170B / 45B / 34B
55takemoto800.17782008/06/20 17:45:051B / ?B / ?B
56m-kawato (kaigi)880.18792008/06/20 14:48:072B / ?B / ?B
57sample930.10332008/06/20 16:26:034B / ?B / ?B
58kawabata1620.20852008/06/20 17:19:550B / ?B / ?B
59niha440.17932008/06/23 05:17:490B / 24B / 18B
60kurimura450.19002008/06/21 17:55:500B / 22B / 21B
61kinaba470.22192008/06/21 17:14:550B / 18B / 27B
62mame520.13552008/06/20 19:00:050B / 27B / 24B
63thata(kaigi)550.18152008/06/21 00:27:180B / ?B / ?B
64nskj77550.15122008/06/26 00:53:150B / ?B / ?B
65naoya_t560.17952008/06/20 19:02:220B / 30B / 23B
66kaki580.19072008/07/11 01:51:330B / 28B / 29B
67hogelog590.09352008/06/20 19:05:590B / 32B / 26B
68tabasa650.13682008/06/23 08:53:440B / ?B / ?B
69sniff660.27752008/06/20 19:16:500B / ?B / ?B
70_680.00982010/09/15 10:53:032B / ?B / ?B
71test700.11252008/06/20 23:41:442B / ?B / ?B
72uru780.10362008/06/20 19:04:030B / ?B / ?B
73hemge_kinen(kaigi)920.15042008/06/20 19:00:135B / ?B / ?B

Perl _

RankUserSizeTimeDateStatistics
1eban(kaigi)600.04262008/06/20 17:34:220B / 29B / 30B
2_820.08192008/06/20 16:53:543B / ?B / ?B
3ueno970.06332008/06/20 16:53:135B / ?B / ?B
4tails (teebee)450.05572012/04/01 03:06:550B / 12B / 33B
5teebee470.00332011/02/03 00:36:090B / 13B / 34B
6gugod660.05892008/06/22 11:03:550B / ?B / ?B
7gugod (kaigi)690.09702008/06/22 10:59:520B / ?B / ?B

Python _

RankUserSizeTimeDateStatistics
1yattom(kaigi)810.19552008/06/20 18:11:530B / ?B / ?B
2kt3k650.11942008/06/25 15:59:000B / 39B / 24B

PHP _

RankUserSizeTimeDateStatistics
1murky-satyr730.37162008/11/23 01:12:170B / 36B / 36B

Scheme _

RankUserSizeTimeDateStatistics
1murky-satyr1120.21932008/06/27 18:39:100B / 69B / 34B
2kaki1450.46592008/07/13 18:59:580B / 85B / 49B

Common LISP _

RankUserSizeTimeDateStatistics
1kozima1130.38532008/07/13 18:27:370B / 69B / 34B

Arc _

RankUserSizeTimeDateStatistics
1pooq6210.69892009/10/19 09:31:390B / 33B / 25B
2youz6610.46002009/10/19 08:11:590B / 36B / 26B

Io _

RankUserSizeTimeDateStatistics
1murky-satyr1062.79762008/06/21 00:43:030B / 75B / 24B

JavaScript _

RankUserSizeTimeDateStatistics
1nn590.06452008/06/20 23:22:570B / 32B / 27B
2murky-satyr600.41092008/06/20 19:31:510B / 33B / 27B

Lua _

RankUserSizeTimeDateStatistics
1murky-satyr810.12972008/06/20 19:48:390B / 42B / 34B

Tcl _

RankUserSizeTimeDateStatistics
1pooq880.01032009/11/20 23:27:480B / 50B / 21B
2murky-satyr960.16492008/09/13 17:27:160B / 55B / 23B

Xtal _

RankUserSizeTimeDateStatistics
1teebee(pooq)760.07332011/12/30 23:41:050B / 43B / 33B
2pooq800.07722010/08/23 12:32:240B / 46B / 34B

REXX _

RankUserSizeTimeDateStatistics
1pooq480.03372012/05/05 19:09:390B / 28B / 11B

Smalltalk _

RankUserSizeTimeDateStatistics
1murky-satyr1010.60912008/06/21 00:10:550B / 64B / 30B

Prolog _

RankUserSizeTimeDateStatistics
1pooq980.52592008/06/24 01:38:560B / 49B / 43B

Forth _

RankUserSizeTimeDateStatistics
151b1080.16572010/04/04 01:30:590B / 59B / 19B

BASIC _

RankUserSizeTimeDateStatistics
1*yuko*660.00202009/12/21 22:48:110B / 41B / 23B
2pooq1060.11122008/06/21 06:00:180B / 56B / 42B

Erlang _

RankUserSizeTimeDateStatistics
151b1441.07452008/06/20 18:09:110B / 63B / 78B
251b1421.13052008/06/20 19:11:240B / 63B / 75B

J _

RankUserSizeTimeDateStatistics
1pooq540.67542008/06/21 17:41:010B / 17B / 34B

C _

RankUserSizeTimeDateStatistics
1shinh760.02902008/06/20 18:28:130B / 37B / 39B
251b810.06822008/06/20 18:08:390B / 40B / 41B
3fkino (kaigi)830.08022008/06/20 18:15:190B / ?B / ?B
4tarui850.07982008/06/20 17:21:310B / ?B / ?B
5inaniwa760.00092009/11/24 13:16:260B / 36B / 40B
6shally760.03472015/10/07 19:01:160B / ?B / ?B
7takotako800.04622008/08/22 19:05:370B / 39B / 41B

D _

RankUserSizeTimeDateStatistics
151b1030.03402008/06/20 18:08:540B / 61B / 39B
2kurimura970.03952008/06/21 20:46:500B / 57B / 37B
351b980.06902008/06/20 19:06:050B / 58B / 37B

OCaml _

RankUserSizeTimeDateStatistics
1ksk820.14052008/06/20 18:51:190B / 50B / 26B

Haskell _

RankUserSizeTimeDateStatistics
1notogawa1080.05952008/06/21 22:19:430B / 68B / 31B
2kurimura1130.06592008/06/21 20:37:400B / 72B / 31B

Pascal _

RankUserSizeTimeDateStatistics
1uru980.06252009/02/22 23:11:210B / 67B / 25B
2pooq1010.08872009/01/25 20:12:310B / 68B / 26B

C# _

RankUserSizeTimeDateStatistics
1matarillo1890.75032008/06/20 18:48:290B / 124B / 57B

Maxima _

RankUserSizeTimeDateStatistics
1pooq760.29882010/01/15 01:33:180B / 42B / 34B

REBOL _

RankUserSizeTimeDateStatistics
1pooq920.16522009/02/15 13:58:280B / 55B / 20B

AWK _

RankUserSizeTimeDateStatistics
1naoya_t (kaigi)510.07232008/06/20 18:42:020B / 26B / 25B
2eban(kaigi)530.04802008/06/20 17:11:430B / 27B / 26B
3nn490.04932009/08/15 00:25:180B / 23B / 26B

Bash _

RankUserSizeTimeDateStatistics
1eban(kaigi)560.11562008/06/20 17:16:400B / 32B / 18B

m4 _

RankUserSizeTimeDateStatistics
151b1010.15182008/06/24 02:27:470B / 55B / 45B

Postscript _

RankUserSizeTimeDateStatistics
1yshl(bin)661.17352008/06/20 18:10:3935B / 20B / 11B
2yshl1321.19562008/06/20 18:10:170B / 98B / 13B
3yshl(bin)651.20512008/06/20 19:09:0933B / 21B / 11B

R _

RankUserSizeTimeDateStatistics
1murky-satyr794.04792008/06/21 03:05:320B / 38B / 37B

GolfScript _

RankUserSizeTimeDateStatistics
1irori270.40852008/06/20 18:49:560B / 8B / 19B
2irori250.32512008/06/20 19:02:410B / 5B / 20B

FlogScript _

RankUserSizeTimeDateStatistics
1milieu261.16842010/08/21 17:41:280B / ?B / ?B

Lazy-K _

RankUserSizeTimeDateStatistics
1irori18960.29452008/06/23 00:19:460B / 964B / 932B

Vim _

RankUserSizeTimeDateStatistics
1nn400.13882009/12/12 23:22:012B / 25B / 12B

goruby _

RankUserSizeTimeDateStatistics
1murky-satyr410.38892008/07/16 05:22:220B / 19B / 19B
2tabasa510.39032008/06/23 09:16:330B / ?B / ?B

Groovy _

RankUserSizeTimeDateStatistics
1nn817.39122009/11/07 00:15:070B / 45B / 35B

Language Ranking_

RankLangUserSizeScore
1GolfScriptirori2510000
2FlogScriptmilieu269615
3Vimnn406250
4gorubymurky-satyr416097
5Rubyniha445681
6Perltails (teebee)455555
7REXXpooq485208
8AWKnn495102
9Jpooq544629
10Basheban(kaigi)564464
11JavaScriptnn594237
12Arcpooq624032
13Postscriptyshl(bin)653846
14Pythonkt3k653846
15BASIC*yuko*663787
16PHPmurky-satyr733424
17Cshinh763289
18Maximapooq763289
19Xtalteebee(pooq)763289
20Rmurky-satyr793164
21Luamurky-satyr813086
22Groovynn813086
23OCamlksk823048
24Tclpooq882840
25REBOLpooq922717
26Dkurimura972577
27Prologpooq982551
28Pascaluru982551
29Smalltalkmurky-satyr1012475
30m451b1012475
31Iomurky-satyr1062358
32Haskellnotogawa1082314
33Forth51b1082314
34Schememurky-satyr1122232
35Common LISPkozima1132212
36Erlang51b1421760
37C#matarillo1891322
38Lazy-Kirori1896131

return top