結果

問題 No.1944 ∞
ユーザー titiatitia
提出日時 2022-05-20 21:57:02
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 296 bytes
コンパイル時間 133 ms
コンパイル使用メモリ 11,772 KB
実行使用メモリ 33,020 KB
最終ジャッジ日時 2023-10-20 12:31:45
合計ジャッジ時間 2,720 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
9,952 KB
testcase_01 AC 30 ms
9,952 KB
testcase_02 AC 30 ms
9,952 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 AC 30 ms
9,952 KB
testcase_12 AC 29 ms
9,952 KB
testcase_13 AC 29 ms
9,952 KB
testcase_14 AC 29 ms
9,952 KB
testcase_15 AC 123 ms
33,020 KB
testcase_16 AC 36 ms
11,496 KB
testcase_17 AC 33 ms
10,792 KB
testcase_18 AC 35 ms
10,964 KB
testcase_19 AC 31 ms
10,356 KB
testcase_20 AC 36 ms
11,052 KB
testcase_21 AC 36 ms
10,988 KB
testcase_22 AC 33 ms
10,652 KB
testcase_23 AC 31 ms
10,292 KB
testcase_24 AC 32 ms
10,476 KB
testcase_25 AC 37 ms
11,212 KB
testcase_26 AC 36 ms
11,232 KB
testcase_27 AC 37 ms
11,084 KB
testcase_28 AC 33 ms
10,728 KB
testcase_29 AC 31 ms
10,244 KB
testcase_30 AC 37 ms
11,220 KB
testcase_31 AC 34 ms
10,792 KB
testcase_32 AC 36 ms
10,960 KB
testcase_33 AC 91 ms
13,208 KB
testcase_34 AC 92 ms
13,208 KB
testcase_35 AC 91 ms
13,208 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

N,X,Y=map(int,input().split())
R=list(map(int,input().split()))

if N==1:
    if X*X+Y*Y==R*R:
        print("Yes")
    else:
        print("No")

R.sort()

MAX=R[0]

for r in R[1:]:
    MAX+=r*2

if MAX*MAX>=X*X+Y*Y:
    print("Yes")
else:
    print("No")
0