結果
| 問題 | No.2516 Credit Creation |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-10-27 21:33:55 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 27 ms / 2,000 ms |
| コード長 | 235 bytes |
| 記録 | |
| コンパイル時間 | 116 ms |
| コンパイル使用メモリ | 85,504 KB |
| 実行使用メモリ | 52,224 KB |
| 最終ジャッジ日時 | 2026-04-12 18:18:11 |
| 合計ジャッジ時間 | 1,225 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
def ip():return int(input())
def mp():return map(int, input().split())
def lmp():return list(map(int, input().split()))
N = ip()
R = float(input())
ans = 100
now = 100
for i in range(1, N):
now = (1-R)*now
ans += now
print(ans)