質問編集履歴
1
誤字修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -7,8 +7,8 @@
|
|
7
7
|
https://www.codewars.com/kata/growth-of-a-population/train/shell
|
8
8
|
|
9
9
|
### ■問題
|
10
|
-
とある町は
|
10
|
+
とある町は"$1"人の住民が住んでいます。人口は毎年"$2"%増加し、さらに毎年"$3"人新しい住民が住みます。
|
11
|
-
町は住民を
|
11
|
+
町は住民を"$4"人以上にするために何年必要ですか?
|
12
12
|
|
13
13
|
At the end of the first year there will be:
|
14
14
|
1000 + 1000 * 0.02 + 50 => 1070 inhabitants
|