結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 451 ms
42,400 KB
testcase_01 AC 457 ms
42,396 KB
testcase_02 AC 459 ms
42,396 KB
testcase_03 AC 457 ms
42,400 KB
testcase_04 AC 470 ms
42,400 KB
testcase_05 AC 472 ms
42,396 KB
testcase_06 AC 461 ms
42,400 KB
testcase_07 AC 446 ms
42,400 KB
testcase_08 AC 453 ms
42,396 KB
testcase_09 AC 469 ms
42,396 KB
testcase_10 AC 471 ms
42,400 KB
testcase_11 WA -
testcase_12 AC 437 ms
42,396 KB
testcase_13 AC 452 ms
42,400 KB
testcase_14 AC 468 ms
42,400 KB
testcase_15 AC 483 ms
51,308 KB
testcase_16 AC 452 ms
42,400 KB
testcase_17 AC 469 ms
42,396 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 468 ms
42,396 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 453 ms
42,400 KB
testcase_24 AC 474 ms
42,396 KB
testcase_25 AC 471 ms
42,400 KB
testcase_26 AC 461 ms
42,396 KB
testcase_27 AC 465 ms
42,400 KB
testcase_28 WA -
testcase_29 WA -
testcase_30 AC 469 ms
42,396 KB
testcase_31 AC 472 ms
42,400 KB
testcase_32 AC 478 ms
42,396 KB
testcase_33 WA -
testcase_34 AC 480 ms
45,936 KB
testcase_35 AC 475 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:]) ** 2
        print('Yes' if s >= z else 'No')



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