結果
問題 |
No.53 悪の漸化式
|
ユーザー |
![]() |
提出日時 | 2025-04-16 00:56:14 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 322 bytes |
コンパイル時間 | 165 ms |
コンパイル使用メモリ | 82,260 KB |
実行使用メモリ | 80,264 KB |
最終ジャッジ日時 | 2025-04-16 00:57:59 |
合計ジャッジ時間 | 2,831 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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))