結果

問題 No.1551 誕生日の三角形
ユーザー Ashes MondalAshes Mondal
提出日時 2021-06-18 21:36:21
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 944 bytes
コンパイル時間 1,265 ms
コンパイル使用メモリ 143,572 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-04 22:32:48
合計ジャッジ時間 1,859 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 AC 2 ms
4,380 KB
testcase_04 AC 1 ms
4,376 KB
testcase_05 AC 2 ms
4,376 KB
testcase_06 AC 2 ms
4,376 KB
testcase_07 AC 2 ms
4,380 KB
testcase_08 AC 1 ms
4,376 KB
testcase_09 AC 2 ms
4,384 KB
testcase_10 AC 2 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
//constant
const int MOD = 1e9 + 7;
//Shortcuts
#define ll long long
#define sz(x) (int)x.size()
#define pb push_back
#define lcm(a, b) (a * b != 0 ? a * b / __gcd(a, b) : 0)
#define f0(i, n) for (int i = 0; i < n; i++)
#define f1(i, n) for (int i = 1; i <= n; i++)
#define all(x) x.begin(), x.end()
#define sortall(x) sort(all(x))
#define debug(...) fprintf(stderr, __VA_ARGS__), fflush(stderr)
//Data Stucture
typedef array<int, 2> pi;
typedef vector<int> vi;
typedef vector<pi> vpi;
typedef set<int> si;
typedef map<int, int> mpi;

void solve()
{
   ll l;cin>>l;
double k = sqrt(3);
double ans = (k*l*l)/36;
cout<<fixed<<setprecision(22)<<ans;
}

int main()
{

    clock_t z = clock();
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    int t = 1;
    // cin >> t;
    while (t--)
        solve();
    debug("Total Time: %.7f", (double)(clock() - z) / CLOCKS_PER_SEC);
    return 0;
}
0