結果
問題 | No.2070 Icosahedron |
ユーザー |
![]() |
提出日時 | 2022-09-18 01:13:36 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 43 ms / 2,000 ms |
コード長 | 374 bytes |
コンパイル時間 | 478 ms |
コンパイル使用メモリ | 55,792 KB |
最終ジャッジ日時 | 2025-02-07 11:30:38 |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 9 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:24:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 24 | scanf("%d", &n); | ~~~~~^~~~~~~~~~
ソースコード
/* -*- coding: utf-8 -*- * * 2070.cc: No.2070 Icosahedron - yukicoder */ #include<cstdio> #include<cmath> #include<algorithm> using namespace std; /* constant */ /* typedef */ /* global variables */ /* subroutines */ /* main */ int main() { int n; scanf("%d", &n); double v = (15.0 + 5 * sqrt(5)) / 12; printf("%.10lf\n", v * n * n * n); return 0; }