結果
問題 |
No.1551 誕生日の三角形
|
ユーザー |
![]() |
提出日時 | 2024-08-07 01:00:55 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 362 bytes |
コンパイル時間 | 1,278 ms |
コンパイル使用メモリ | 113,556 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-08-07 01:00:57 |
合計ジャッジ時間 | 2,220 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 9 |
ソースコード
#include<iostream> #include<vector> #include<algorithm> using namespace std; using ll = long long; #include<math.h> #include<iomanip> int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); int l; cin>>l; long double use = l; use /= 3; long double ans = use * use * sqrt(3) / 4; cout<<setprecision(30)<<fixed<<ans<<endl; }