結果

問題 No.1944 ∞
ユーザー take000
提出日時 2022-05-20 22:07:57
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 87 ms / 2,000 ms
コード長 295 bytes
コンパイル時間 199 ms
コンパイル使用メモリ 82,120 KB
実行使用メモリ 102,656 KB
最終ジャッジ日時 2025-06-20 00:27:46
合計ジャッジ時間 3,100 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 37
権限があれば一括ダウンロードができます

ソースコード

diff #

N, X, Y = map(int, input().split())
R = list(map(int, input().split()))

acc = 2*sum(R)
mi = min(R)
acc -= mi

dis = X*X+Y*Y
acc *= acc

if N == 1:
    if dis == acc:
        print("Yes")
    else:
        print("No")
else:
    if dis <= acc:
        print("Yes")
    else:
        print("No")

0