結果
| 問題 |
No.1944 ∞
|
| コンテスト | |
| ユーザー |
tnakao0123
|
| 提出日時 | 2022-05-20 23:18:49 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 607 bytes |
| コンパイル時間 | 255 ms |
| コンパイル使用メモリ | 41,856 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-20 09:41:59 |
| 合計ジャッジ時間 | 1,408 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 34 WA * 2 |
ソースコード
/* -*- coding: utf-8 -*-
*
* 1944.cc: No.1944 ∞ - yukicoder
*/
#include<cstdio>
#include<algorithm>
using namespace std;
/* constant */
const int MAX_N = 200000;
/* typedef */
typedef long long ll;
/* global variables */
int rs[MAX_N];
/* subroutines */
/* main */
int main() {
int n, x, y;
scanf("%d%d%d", &n, &x, &y);
ll rsum = 0;
for (int i = 0; i < n; i++) scanf("%d", rs + i), rsum += rs[i];
int minr = *min_element(rs, rs + n);
ll dd = (ll)x * x + (ll)y * y;
ll r = 2 * rsum - minr;
if (r >= 2000000000 || r * r >= dd) puts("Yes");
else puts("No");
return 0;
}
tnakao0123