結果
問題 |
No.1944 ∞
|
ユーザー |
|
提出日時 | 2022-05-20 22:22:34 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 407 bytes |
コンパイル時間 | 2,030 ms |
コンパイル使用メモリ | 166,616 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-20 08:36:52 |
合計ジャッジ時間 | 2,726 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 31 WA * 5 |
ソースコード
#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; long long R1=0,R=0; cin>>R1; for(int i=0,t;i<N-1;i++){ cin>>t; R+=t*2; } if(R1*R1<D){ R+=R1; R*=R; cout<<(R<D?"No\n":"Yes\n"); }else{ R+=sqrt(D); R*=R; cout<<(R<R1*R1?"No\n":"Yes\n"); } }