結果
| 問題 | 
                            No.1944 ∞
                             | 
                    
| コンテスト | |
| ユーザー | 
                             Today03
                         | 
                    
| 提出日時 | 2022-05-21 00:36:44 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 723 bytes | 
| コンパイル時間 | 2,229 ms | 
| コンパイル使用メモリ | 198,700 KB | 
| 最終ジャッジ日時 | 2025-01-29 12:23:11 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 33 WA * 3 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
using P = pair<int, int>;
#define test cout << "test:"
const int inf = 1073741824;
const long long linf = 1152921504606846976;
// const int mod = 998244353;
// const int mod = 1000000007;
const int dx[] = {1, 0, -1, 0}, dy[] = {0, 1, 0, -1};
void _main()
{
	long long n, x, y;
	cin >> n >> x >> y;
	vector<int> r(n);
	for (int i = 0; i < n; i++)
		cin >> r[i];
	sort(r.begin(), r.end());
	long long sum = 0;
	for (int i = 0; i < n; i++)
	{
		if (i == 0)
			sum += r[0];
		else
			sum += 2 * r[i];
	}
	cout << (sum * sum >= x * x + y * y ? "Yes\n" : "No\n");
	return;
}
int main()
{
	ios::sync_with_stdio(false);
	cin.tie(0);
	cout << fixed << setprecision(15);
	_main();
}
            
            
            
        
            
Today03