結果
問題 | No.1622 三角形の面積 |
ユーザー |
|
提出日時 | 2022-04-13 18:38:17 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 458 bytes |
コンパイル時間 | 1,888 ms |
コンパイル使用メモリ | 157,532 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-23 17:06:01 |
合計ジャッジ時間 | 1,984 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 4 |
ソースコード
#include <bits/stdc++.h>// #include <atcoder/all>#define rep(i, n) for (int i = 0; i < (int)(n); i++)using namespace std;// using namespace atcoder;using ll = long long;using p = pair<ll, ll>;// #define rep(i, n) for (ll i = 0; i < (ll)(n); i++)int main() {int t;cin >> t;rep(i, t) {int r;cin >> r;cout << fixed << setprecision(20);cout << 3 * r * r * sqrt(3) / 4.0 << endl;}return 0;}