結果
| 問題 | No.2070 Icosahedron |
| コンテスト | |
| ユーザー |
kokatsu
|
| 提出日時 | 2022-09-26 00:21:11 |
| 言語 | D (dmd 2.112.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 164 bytes |
| 記録 | |
| コンパイル時間 | 2,481 ms |
| コンパイル使用メモリ | 195,292 KB |
| 実行使用メモリ | 7,720 KB |
| 最終ジャッジ日時 | 2026-03-06 21:13:24 |
| 合計ジャッジ時間 | 3,167 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 |
コンパイルメッセージ
/home/linuxbrew/.linuxbrew/opt/dmd/include/dlang/dmd/core/checkedint.d(814): Warning: cannot inline function `core.checkedint.mulu!().mulu`
ulong mulu()(ulong x, uint y, ref bool overflow)
^
ソースコード
import std;
void main() {
long N;
readf("%d\n", N);
long C = N ^^ 3;
real res = 5.0 * (3.0 + sqrt(5.0)) * C / 12.0;
writefln("%.15f", res);
}
kokatsu