結果

問題 No.1944 ∞
ユーザー hir355
提出日時 2022-05-20 21:41:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 79 ms / 2,000 ms
コード長 339 bytes
コンパイル時間 144 ms
コンパイル使用メモリ 82,016 KB
実行使用メモリ 104,064 KB
最終ジャッジ日時 2024-09-20 07:38:41
合計ジャッジ時間 2,660 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 36
権限があれば一括ダウンロードができます

ソースコード

diff #

n, x, y = map(int, input().split())
r = list(map(int, input().split()))
r.sort()
s = sum(r[1:]) * 2
if r[0] ** 2 >= x ** 2 + y ** 2:
    if r[0] <= s or (r[0] - s) ** 2 <= x ** 2 + y ** 2:
        print('Yes')
    else:
        print('No')
else:
    if (s + r[0]) ** 2 >= x ** 2 + y ** 2:
        print('Yes')
    else:
        print('No')
0