回答編集履歴
1
暗黙の型変換を利用
test
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
int x = ticket * n;
|
18
18
|
|
19
|
-
y = ceil(y +
|
19
|
+
y = ceil(y + ticket * pow(perc, n));
|
20
20
|
|
21
21
|
|
22
22
|
|