結果
問題 |
No.1944 ∞
|
ユーザー |
|
提出日時 | 2022-05-25 00:52:58 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 470 bytes |
コンパイル時間 | 1,496 ms |
コンパイル使用メモリ | 171,016 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-20 14:37:48 |
合計ジャッジ時間 | 2,634 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 31 WA * 5 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i,n) for (int i=0;i<(int)(n);i++) ll d2(ll x){ double y=x; y=y*y; if(y>=4e18) return 4e18; else return x*x; } int main(){ int n,x,y; cin>>n>>x>>y; vector<int> r(n); sort(r.begin(),r.end()); ll rs=0; rep(i,n){ cin>>r.at(i); rs+=r.at(i)*2; } rs-=r.at(0); ll fxy=ll(x)*x+ll(y)*y; ll rrs=d2(rs); if(rrs<fxy) cout<<"No"<<endl; else cout<<"Yes"<<endl; }