結果

問題 No.1944 ∞
ユーザー ripity
提出日時 2022-05-20 21:57:24
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 272 bytes
コンパイル時間 151 ms
コンパイル使用メモリ 82,376 KB
実行使用メモリ 104,556 KB
最終ジャッジ日時 2024-09-20 08:02:29
合計ジャッジ時間 2,831 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 28 WA * 8
権限があれば一括ダウンロードができます

ソースコード

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 abs(d-s(r[0])) <= s(k): print('Yes')
    else: print('No')
0