結果

問題 No.1944 ∞
ユーザー AkariAkari
提出日時 2022-05-20 22:14:40
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 493 ms / 2,000 ms
コード長 384 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 11,900 KB
実行使用メモリ 51,324 KB
最終ジャッジ日時 2023-10-20 12:57:41
合計ジャッジ時間 18,771 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 480 ms
42,396 KB
testcase_01 AC 473 ms
42,396 KB
testcase_02 AC 474 ms
42,396 KB
testcase_03 AC 478 ms
42,396 KB
testcase_04 AC 478 ms
42,396 KB
testcase_05 AC 473 ms
42,396 KB
testcase_06 AC 470 ms
42,396 KB
testcase_07 AC 483 ms
42,396 KB
testcase_08 AC 473 ms
42,396 KB
testcase_09 AC 472 ms
42,396 KB
testcase_10 AC 459 ms
42,400 KB
testcase_11 AC 465 ms
42,396 KB
testcase_12 AC 461 ms
42,396 KB
testcase_13 AC 461 ms
42,400 KB
testcase_14 AC 464 ms
42,400 KB
testcase_15 AC 493 ms
51,324 KB
testcase_16 AC 478 ms
42,400 KB
testcase_17 AC 472 ms
42,396 KB
testcase_18 AC 467 ms
42,396 KB
testcase_19 AC 465 ms
42,400 KB
testcase_20 AC 473 ms
42,396 KB
testcase_21 AC 466 ms
42,396 KB
testcase_22 AC 469 ms
42,396 KB
testcase_23 AC 475 ms
42,396 KB
testcase_24 AC 469 ms
42,396 KB
testcase_25 AC 478 ms
42,400 KB
testcase_26 AC 479 ms
42,396 KB
testcase_27 AC 478 ms
42,396 KB
testcase_28 AC 481 ms
42,396 KB
testcase_29 AC 482 ms
42,400 KB
testcase_30 AC 468 ms
42,400 KB
testcase_31 AC 468 ms
42,396 KB
testcase_32 AC 463 ms
42,396 KB
testcase_33 AC 489 ms
45,952 KB
testcase_34 AC 480 ms
45,952 KB
testcase_35 AC 485 ms
45,936 KB
権限があれば一括ダウンロードができます

ソースコード

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:])
        print('Yes' if s ** 2 >= z else 'No')



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