結果
| 問題 |
No.2516 Credit Creation
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-10-27 21:26:32 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 40 ms / 2,000 ms |
| コード長 | 213 bytes |
| コンパイル時間 | 267 ms |
| コンパイル使用メモリ | 82,108 KB |
| 実行使用メモリ | 51,968 KB |
| 最終ジャッジ日時 | 2024-09-25 13:27:21 |
| 合計ジャッジ時間 | 1,347 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
N = int(input())
R = float(input())
ans = [0.0] * (N + 1)
ans[1] = 100.0
for i in range(1, N):
# if i == N - 1:
# continue
ans[i + 1] = (1 - R) * ans[i]
# ans[i] = R * ans[i]
print(sum(ans))