結果

問題 No.2070 Icosahedron
コンテスト
ユーザー VvyLw
提出日時 2025-04-03 17:07:03
言語 D
(dmd 2.112.0)
コンパイル:
dmd -fPIE -m64 -w -wi -O -release -inline -I/opt/dmd/src/druntime/import/ -I/opt/dmd/src/phobos -L-L/opt/dmd/linux/lib64/ -fPIC _filename_
実行:
./Main
結果
WA  
実行時間 -
コード長 293 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,408 ms
コンパイル使用メモリ 189,984 KB
実行使用メモリ 9,264 KB
最終ジャッジ日時 2026-07-08 08:00:50
合計ジャッジ時間 2,436 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 1 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import std;
import core.bitop;
import core.checkedint;
import core.time;

const c = 2.18169499062491237350;

void main() {
	const n = readln.chomp.to!int;
	writeln(format("%.12f", c * (n ^^ 3)));
}

pragma(inline)
string yes(const bool b) pure @nogc nothrow @safe {
	return b ? "Yes" : "No";
}
0