結果

問題 No.1487 ぺんぎんさんかっけー
ユーザー Mr_uts1_quizerMr_uts1_quizer
提出日時 2021-04-23 22:52:20
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 413 bytes
コンパイル時間 1,562 ms
コンパイル使用メモリ 164,708 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-17 12:53:04
合計ジャッジ時間 22,689 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 517 ms
4,384 KB
testcase_01 AC 518 ms
4,384 KB
testcase_02 AC 518 ms
4,384 KB
testcase_03 AC 517 ms
4,380 KB
testcase_04 AC 519 ms
4,380 KB
testcase_05 AC 519 ms
4,380 KB
testcase_06 AC 518 ms
4,380 KB
testcase_07 AC 516 ms
4,380 KB
testcase_08 AC 519 ms
4,380 KB
testcase_09 AC 517 ms
4,380 KB
testcase_10 AC 519 ms
4,384 KB
testcase_11 AC 518 ms
4,384 KB
testcase_12 AC 517 ms
4,384 KB
testcase_13 WA -
testcase_14 AC 518 ms
4,380 KB
testcase_15 WA -
testcase_16 AC 521 ms
4,384 KB
testcase_17 AC 518 ms
4,380 KB
testcase_18 WA -
testcase_19 AC 517 ms
4,380 KB
testcase_20 WA -
testcase_21 AC 518 ms
4,380 KB
testcase_22 AC 517 ms
4,380 KB
testcase_23 AC 518 ms
4,380 KB
testcase_24 AC 518 ms
4,384 KB
testcase_25 AC 517 ms
4,380 KB
testcase_26 AC 517 ms
4,384 KB
testcase_27 AC 517 ms
4,380 KB
testcase_28 AC 520 ms
4,380 KB
testcase_29 AC 517 ms
4,380 KB
testcase_30 AC 518 ms
4,384 KB
testcase_31 AC 518 ms
4,380 KB
testcase_32 AC 520 ms
4,384 KB
testcase_33 AC 519 ms
4,380 KB
testcase_34 AC 518 ms
4,384 KB
testcase_35 AC 518 ms
4,384 KB
testcase_36 AC 518 ms
4,384 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  double a,b,c;
  cin >> a >> b >> c;
  double s;
  s=(a+b+c)/2;
  double tri;
  tri=sqrt(s*(s-a)*(s-b)*(s-c));
  double count=0;
  for(int i=0; i<700;i++){
    for(int j=0; j<700;j++){
      for(int k=0; k<700;k++){
        count += tri*(1-(1-i/700)*(j/700)-(1-j/700)*(k/700)-(1-k/700)*(i/700));
      }
    }
  }
  cout << count/1372000000 << endl;
}
0