結果
問題 | No.2516 Credit Creation |
ユーザー | FromBooska |
提出日時 | 2023-10-27 21:37:42 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 39 ms / 2,000 ms |
コード長 | 172 bytes |
コンパイル時間 | 222 ms |
コンパイル使用メモリ | 82,124 KB |
実行使用メモリ | 53,572 KB |
最終ジャッジ日時 | 2024-09-25 13:42:21 |
合計ジャッジ時間 | 1,344 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
N = int(input()) R = float(input()) beef = [0]*(N+1) beef[0] = 100 ans = 0 for i in range(N): ans += beef[i] beef[i+1] += beef[i]*(1-R) #print(beef) print(ans)