結果

問題 No.1944 ∞
ユーザー Akari
提出日時 2022-05-20 22:13:41
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 384 bytes
コンパイル時間 166 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 54,932 KB
最終ジャッジ日時 2024-09-20 08:25:50
合計ジャッジ時間 21,889 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 28 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
import numpy as np


def main():
    n, x, y = map(int, input().split())
    R = np.fromstring(input(), np.int64, sep=' ')
    z = x ** 2 + y ** 2
    if n == 1:
        print('Yes' if R[0] ** 2 == z else 'No')
    else:
        R = np.sort(R).tolist()
        s = R[0] + 2 * sum(R[1:]) ** 2
        print('Yes' if s >= z else 'No')



if __name__ == '__main__':
    main()
0