結果
問題 |
No.1944 ∞
|
ユーザー |
|
提出日時 | 2022-06-07 19:47:53 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 349 bytes |
コンパイル時間 | 1,992 ms |
コンパイル使用メモリ | 194,288 KB |
最終ジャッジ日時 | 2025-01-29 18:55:46 |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 33 WA * 3 |
ソースコード
#include <bits/stdc++.h> using namespace std; int n; long long x, y, v; long long r[200000]; int main() { cin >> n >> x >> y; for (int i = 0; i < n; i++) { cin >> r[i]; } sort(r, r + n); v = r[0]; for (int i = 1; i < n; i++) { v = v + r[i] * 2; } if (x * x + y * y <= v * v) cout << "Yes" << endl; else cout << "No" << endl; }