結果

問題 No.1551 誕生日の三角形
ユーザー iddaker
提出日時 2021-06-18 21:48:39
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 597 bytes
コンパイル時間 1,315 ms
コンパイル使用メモリ 166,220 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-22 20:10:13
合計ジャッジ時間 1,804 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

//
#include "bits/stdc++.h"
using namespace std;
#define pr1(a) for(auto b : a) cout << b << " ";cout << endl;
#define pr2(a) for(auto b : a){for(auto c:b) cout << c << " ";cout << endl;}
#define prc(...) for(auto b:{ __VA_ARGS__ }) cout << b << " ";cout << endl;
const long long mod=1000000007;

void solve()
{
    double n,ans;
    cin >> n;
    n/=3;
    ans=sqrt(3)*n*n/4;
    cout << fixed;
    cout.precision(10);
    cout<<ans<<endl;
    
}

int main()
{
    ios_base::sync_with_stdio(0);    cin.tie(0);    cout.tie(0);

    int tn = 1;
    //cin >> tn;
    while (tn--)
        solve();
}
0