結果
| 問題 | No.2070 Icosahedron |
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-03-20 18:40:59 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 174 ms / 2,000 ms |
| コード長 | 319 bytes |
| 記録 | |
| コンパイル時間 | 234 ms |
| コンパイル使用メモリ | 95,980 KB |
| 実行使用メモリ | 91,136 KB |
| 最終ジャッジ日時 | 2026-07-07 07:17:54 |
| 合計ジャッジ時間 | 3,395 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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