結果

問題 No.1551 誕生日の三角形
ユーザー Ashes MondalAshes Mondal
提出日時 2021-06-18 21:31:14
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 987 bytes
コンパイル時間 1,703 ms
コンパイル使用メモリ 166,776 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-22 19:55:41
合計ジャッジ時間 2,283 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other WA * 9
権限があれば一括ダウンロードができます

ソースコード

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;
cout<<sqrt(3)*l*l/36;
}

int main()
{
#ifndef ONLINE_JUDGE
    freopen("input.txt", "r", stdin);
    freopen("output.txt", "w", stdout);
#endif
    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