結果

問題 No.1944 ∞
コンテスト
ユーザー hir355
提出日時 2022-05-20 21:37:42
言語 PyPy3
(8.0.0 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 330 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 224 ms
コンパイル使用メモリ 95,952 KB
実行使用メモリ 115,644 KB
最終ジャッジ日時 2026-08-31 15:43:15
合計ジャッジ時間 4,226 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 33 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

n, x, y = map(int, input().split())
r = list(map(int, input().split()))
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