結果
| 問題 |
No.2516 Credit Creation
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-06-12 16:43:35 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 136 ms / 2,000 ms |
| コード長 | 258 bytes |
| コンパイル時間 | 170 ms |
| コンパイル使用メモリ | 82,100 KB |
| 実行使用メモリ | 80,544 KB |
| 最終ジャッジ日時 | 2025-06-12 16:43:41 |
| 合計ジャッジ時間 | 2,529 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
from decimal import Decimal, getcontext
def main():
getcontext().prec = 300
n = int(input())
r = 1-Decimal(input())
s = 0
a = 100
for i in range(n):
s += a
a *= r
print(s)
if __name__ == '__main__':
main()