結果

問題 No.1487 ぺんぎんさんかっけー
ユーザー Mr_uts1_quizer
提出日時 2021-04-23 22:43:16
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 411 bytes
コンパイル時間 1,392 ms
コンパイル使用メモリ 165,848 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-04 08:26:48
合計ジャッジ時間 2,788 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 33 WA * 4
権限があれば一括ダウンロードができます

ソースコード

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<200;i++){
    for(int j=0; j<200;j++){
      for(int k=0; k<200;k++){
        count += tri*(1-(1-i/200)*(j/200)-(1-j/200)*(k/200)-(1-k/200)*(i/200));
      }
    }
  }
  cout << count/32000000 << endl;
}
0