結果
| 問題 | No.2555 Intriguing Triangle | 
| コンテスト | |
| ユーザー |  umezo | 
| 提出日時 | 2023-12-01 01:10:19 | 
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 680 bytes | 
| コンパイル時間 | 1,962 ms | 
| コンパイル使用メモリ | 193,492 KB | 
| 最終ジャッジ日時 | 2025-02-18 02:47:27 | 
| ジャッジサーバーID (参考情報) | judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 22 WA * 6 | 
ソースコード
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define ALL(v) v.begin(),v.end()
typedef long long ll;
 
#include<bits/stdc++.h>
using namespace std;
const double EPS=1e-2;
 
int main(){
  ios::sync_with_stdio(false);
  std::cin.tie(nullptr);
  
  double a,b,c;
  cin>>a>>b>>c;
  for(double x=1;x<b+c-a;x++){
    for(double y=1;y<b+c-a;y++){
      if(x+y+a>=b+c) continue;
      double e,f;
      e=sqrt((a+y)*(a+y)+c*c-(a+y)*(c*c+(x+y+a)*(x+y+a)-b*b)/(x+y+a));
      f=sqrt((a+x)*(a+x)+b*b-(a+x)*(b*b+(x+y+a)*(x+y+a)-c*c)/(x+y+a));
      if(abs(c*f*(b*b+e*e-x*x)-b*e*(c*c+f*f-y*y))<EPS){
        cout<<"Yes\n";
        return 0;
      }
    }
  }
  cout<<"No\n";
    
  return 0;
}
            
            
            
        