結果
問題 | No.1622 三角形の面積 |
ユーザー |
|
提出日時 | 2021-08-29 19:45:55 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 293 bytes |
コンパイル時間 | 790 ms |
コンパイル使用メモリ | 66,964 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-22 07:46:56 |
合計ジャッジ時間 | 1,099 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 4 |
ソースコード
#include <iostream>#include <math.h>#include <stdio.h>using namespace std;double MaxArea(int r){double area = (3.0 * r *sqrt(3.0)*r) / 4.0;return area;}int main(){int t,i;int r;cin >> t;for (i = 0; i < t; i++) {cin >> r;printf("%.15lf\n", MaxArea(r));}return 0;}