結果
| 問題 |
No.1944 ∞
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-05-21 00:30:08 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 406 bytes |
| コンパイル時間 | 1,501 ms |
| コンパイル使用メモリ | 169,624 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-20 10:46:31 |
| 合計ジャッジ時間 | 2,369 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 35 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*s>=D?"Yes\n":"No\n");
}
}