結果
問題 | No.1551 誕生日の三角形 |
ユーザー |
|
提出日時 | 2021-06-18 21:27:03 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 622 bytes |
コンパイル時間 | 1,499 ms |
コンパイル使用メモリ | 167,932 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-22 19:51:32 |
合計ジャッジ時間 | 2,007 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 9 |
ソースコード
#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 secondconst 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;}