結果

問題 No.1487 ぺんぎんさんかっけー
ユーザー Mr_uts1_quizer
提出日時 2021-04-23 22:52:20
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 413 bytes
コンパイル時間 1,488 ms
コンパイル使用メモリ 166,720 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-04 08:33:45
合計ジャッジ時間 22,206 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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<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