結果

問題 No.1944 ∞
ユーザー AkariAkari
提出日時 2022-05-20 21:59:24
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 357 bytes
コンパイル時間 930 ms
コンパイル使用メモリ 11,868 KB
実行使用メモリ 77,412 KB
最終ジャッジ日時 2023-10-20 12:37:17
合計ジャッジ時間 23,419 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 579 ms
42,328 KB
testcase_01 AC 515 ms
42,332 KB
testcase_02 AC 510 ms
42,332 KB
testcase_03 AC 505 ms
42,404 KB
testcase_04 AC 506 ms
42,332 KB
testcase_05 AC 506 ms
42,332 KB
testcase_06 AC 512 ms
42,332 KB
testcase_07 AC 508 ms
42,332 KB
testcase_08 AC 504 ms
42,332 KB
testcase_09 AC 505 ms
42,404 KB
testcase_10 AC 508 ms
42,404 KB
testcase_11 AC 505 ms
42,404 KB
testcase_12 AC 511 ms
42,332 KB
testcase_13 AC 517 ms
42,332 KB
testcase_14 AC 508 ms
42,332 KB
testcase_15 WA -
testcase_16 AC 496 ms
42,332 KB
testcase_17 AC 496 ms
42,332 KB
testcase_18 AC 502 ms
42,332 KB
testcase_19 AC 509 ms
42,332 KB
testcase_20 AC 506 ms
42,332 KB
testcase_21 AC 505 ms
42,332 KB
testcase_22 AC 502 ms
42,600 KB
testcase_23 AC 506 ms
42,332 KB
testcase_24 AC 497 ms
42,332 KB
testcase_25 AC 498 ms
42,332 KB
testcase_26 AC 499 ms
42,332 KB
testcase_27 AC 492 ms
42,332 KB
testcase_28 AC 508 ms
42,332 KB
testcase_29 AC 504 ms
42,332 KB
testcase_30 AC 505 ms
42,332 KB
testcase_31 AC 505 ms
42,332 KB
testcase_32 AC 500 ms
42,332 KB
testcase_33 AC 505 ms
44,336 KB
testcase_34 AC 501 ms
44,336 KB
testcase_35 AC 504 ms
77,412 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.sort()
        print('Yes' if (R[0] + 2*R[1:].sum()) ** 2 >= z else 'No')



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