結果

問題 No.1551 誕生日の三角形
ユーザー Saleh IsayevSaleh Isayev
提出日時 2021-06-18 21:27:03
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 622 bytes
コンパイル時間 1,519 ms
コンパイル使用メモリ 164,060 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-04 22:24:57
合計ジャッジ時間 2,189 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

typedef long long ll;
#define int ll
#define _FastIO ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)
#define pii pair<int , int>
#define pb push_back
#define F first
#define S second
const int mod = 1e9 + 7;
const int MAXX = 1e6 + 5;

int t , n;
int a[MAXX];
string s;

signed main()
{
    _FastIO;
    cout.precision(12);
    cin >> n;
    n *= 3;
    long double ans = sqrt(n * 1.00) * 1.00;
    ans = ans * 1.0 / 36 * 1.0;
    n /= 3;
    ans *= n;
    long double l = sqrt(n * 1.00);
    ans = ans * 1.0 * l * 1.0;
    cout << fixed << ans << endl;
    return 0;
}
0