結果
問題 | No.1622 三角形の面積 |
ユーザー |
![]() |
提出日時 | 2021-07-23 21:48:56 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 397 bytes |
コンパイル時間 | 3,405 ms |
コンパイル使用メモリ | 228,116 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-18 17:29:16 |
合計ジャッジ時間 | 3,787 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 4 |
ソースコード
#include <bits/stdc++.h> using namespace std; #include <atcoder/all> using namespace atcoder; using ll=long long; using Graph=vector<vector<pair<int,int>>>; #define MAX 100 #define MOD 998244353 #define INF 1000000000 int main(){ int t; cin>>t; for(int i=0;i<t;i++){ double r; cin>>r; double a=r/2.0*sqrt(3); double ans=2.0*a*sqrt(3)*a/2.0; printf("%.6lf\n",ans); } }