結果

問題 No.1944 ∞
ユーザー chineristAC
提出日時 2022-05-20 21:33:12
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 108 ms / 2,000 ms
コード長 483 bytes
コンパイル時間 181 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 104,704 KB
最終ジャッジ日時 2025-06-20 00:26:48
合計ジャッジ時間 3,510 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 37
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys,random,bisect
from collections import deque,defaultdict
import heapq
from itertools import permutations
from math import gcd

input = lambda :sys.stdin.readline().rstrip()
mi = lambda :map(int,input().split())
li = lambda :list(mi())

N,X,Y = mi()
R = li()
R.sort()

if N==1:
    if R[0]**2==X**2+Y**2:
        print("Yes")
    else:
        print("No")
    exit()

M = R[0] + sum(2*R[i] for i in range(1,N))
if X**2 + Y**2 <= M**2:
    print("Yes")
else:
    print("No")
0