結果

問題 No.2070 Icosahedron
ユーザー elphe
提出日時 2025-02-14 12:45:07
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 362 bytes
コンパイル時間 966 ms
コンパイル使用メモリ 83,952 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2025-02-14 12:45:09
合計ジャッジ時間 1,986 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <iomanip>
#include <cstdint>

using namespace std;

int main()
{
	cin.tie(nullptr);
	ios::sync_with_stdio(false);
	
	uint32_t N;
	cin >> N;

	const uint32_t squared_N = N * N;
	const uint64_t cubed_N = squared_N * static_cast<uint64_t>(N);

	cout << fixed << setprecision(12) << cubed_N * 2.18169499062491237350 << '\n';
	return 0;
}
0