結果

問題 No.1944 ∞
ユーザー titiatitia
提出日時 2022-05-20 21:57:24
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
実行時間 -
コード長 302 bytes
コンパイル時間 164 ms
コンパイル使用メモリ 11,852 KB
実行使用メモリ 33,048 KB
最終ジャッジ日時 2023-10-20 12:32:22
合計ジャッジ時間 2,822 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
9,980 KB
testcase_01 AC 30 ms
9,980 KB
testcase_02 AC 28 ms
9,980 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 28 ms
9,980 KB
testcase_12 AC 29 ms
9,980 KB
testcase_13 AC 29 ms
9,980 KB
testcase_14 AC 28 ms
9,980 KB
testcase_15 AC 123 ms
33,048 KB
testcase_16 AC 35 ms
11,524 KB
testcase_17 AC 32 ms
10,816 KB
testcase_18 AC 34 ms
10,988 KB
testcase_19 AC 30 ms
10,380 KB
testcase_20 AC 34 ms
11,076 KB
testcase_21 AC 35 ms
11,012 KB
testcase_22 AC 32 ms
10,676 KB
testcase_23 AC 30 ms
10,320 KB
testcase_24 AC 31 ms
10,504 KB
testcase_25 AC 37 ms
11,240 KB
testcase_26 AC 38 ms
11,256 KB
testcase_27 AC 36 ms
11,112 KB
testcase_28 AC 34 ms
10,752 KB
testcase_29 AC 31 ms
10,272 KB
testcase_30 AC 36 ms
11,244 KB
testcase_31 AC 35 ms
10,824 KB
testcase_32 AC 35 ms
10,996 KB
testcase_33 AC 90 ms
13,236 KB
testcase_34 AC 91 ms
13,236 KB
testcase_35 AC 93 ms
13,236 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[0]*R[0]:
        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