結果

問題 No.1944 ∞
ユーザー ripity
提出日時 2022-05-20 21:51:54
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 290 bytes
コンパイル時間 315 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 103,296 KB
最終ジャッジ日時 2024-09-20 07:55:23
合計ジャッジ時間 3,182 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 33 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

def s(x):
    return x*x

n, x, y = map(int, input().split())
r = list(map(int, input().split()))
d = s(x)+s(y)

if n == 1:
    if s(r[0]) == d: print('Yes')
    else: print('No')
else:
    k = 2*sum(r[1:])
    if s(r[0]+k) >= d or s(max(0, r[0]-k)) >= d: print('Yes')
    else: print('No')
0