結果
問題 |
No.53 悪の漸化式
|
ユーザー |
![]() |
提出日時 | 2025-04-16 16:41:05 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 322 bytes |
コンパイル時間 | 230 ms |
コンパイル使用メモリ | 81,780 KB |
実行使用メモリ | 80,020 KB |
最終ジャッジ日時 | 2025-04-16 16:42:00 |
合計ジャッジ時間 | 3,185 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 WA * 10 |
ソースコード
from decimal import Decimal, getcontext getcontext().prec = 200 # Set sufficient precision to handle large exponents N = int(input()) if N == 0: print("4.00000000") else: numerator = 4 * (3 ** N) denominator = 4 ** N result = Decimal(numerator) / Decimal(denominator) print("{0:.8f}".format(result))