結果
| 問題 |
No.2070 Icosahedron
|
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-03-20 18:40:59 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 123 ms / 2,000 ms |
| コード長 | 319 bytes |
| コンパイル時間 | 194 ms |
| コンパイル使用メモリ | 82,516 KB |
| 実行使用メモリ | 80,416 KB |
| 最終ジャッジ日時 | 2025-03-20 18:41:20 |
| 合計ジャッジ時間 | 2,256 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 |
ソースコード
from decimal import Decimal, getcontext
n = int(input())
getcontext().prec = 200 # Set a high precision to ensure accuracy
sqrt5 = Decimal(5).sqrt()
coeff = (Decimal(5) * (Decimal(3) + sqrt5)) / Decimal(12)
volume = coeff * (Decimal(n) ** 3)
# Format the output to 20 decimal places
print("{0:.20f}".format(volume))
lam6er