結果
| 問題 |
No.1551 誕生日の三角形
|
| コンテスト | |
| ユーザー |
Nachia
|
| 提出日時 | 2021-06-18 21:22:22 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 506 bytes |
| コンパイル時間 | 793 ms |
| コンパイル使用メモリ | 90,836 KB |
| 最終ジャッジ日時 | 2025-01-22 08:54:51 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 |
ソースコード
#include <iostream>
#include <vector>
#include <cmath>
#include <iomanip>
using namespace std;
using ll = long long;
using ull = unsigned long long;
#define rep(i,n) for(int i=0; i<(n); i++)
void testcase(){
double L; cin >> L;
L /= 3;
double ans = sqrt(3.0) / 4.0 * L * L;
cout << setprecision(10) << fixed << ans << "\n";
}
int main(){
testcase();
return 0;
}
struct ios_do_not_sync{
ios_do_not_sync(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
}
} ios_do_not_sync_inst;
Nachia