結果
| 問題 | 
                            No.1944 ∞
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2022-05-21 00:32:28 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                            (最新)
                                AC
                                 
                             
                            (最初)
                            
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 410 bytes | 
| コンパイル時間 | 1,441 ms | 
| コンパイル使用メモリ | 165,456 KB | 
| 実行使用メモリ | 7,840 KB | 
| 最終ジャッジ日時 | 2025-06-20 00:29:08 | 
| 合計ジャッジ時間 | 2,662 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 36 WA * 1 | 
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int N;
  long long X,Y;
  cin>>N>>X>>Y;
  long long D=X*X+Y*Y;
  vector<long long>R(N);
  for(auto &i:R)cin>>i;
  long long m=*min_element(R.begin(),R.end()),s=accumulate(R.begin(),R.end(),0ll)*2-m;
  if(N==1){
    cout<<(m*m==D?"Yes\n":"No\n");
  }else{
    cout<<(s>=sqrt(D)?"Yes\n":"No\n");
  }
}