結果

問題 No.1944 ∞
ユーザー lloyzlloyz
提出日時 2022-05-21 00:37:05
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 91 ms / 2,000 ms
コード長 270 bytes
コンパイル時間 946 ms
コンパイル使用メモリ 11,784 KB
実行使用メモリ 34,436 KB
最終ジャッジ日時 2023-10-20 15:18:15
合計ジャッジ時間 3,089 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
10,116 KB
testcase_01 AC 26 ms
10,116 KB
testcase_02 AC 29 ms
10,116 KB
testcase_03 AC 25 ms
10,116 KB
testcase_04 AC 25 ms
10,116 KB
testcase_05 AC 27 ms
10,116 KB
testcase_06 AC 26 ms
10,116 KB
testcase_07 AC 28 ms
10,116 KB
testcase_08 AC 27 ms
10,116 KB
testcase_09 AC 30 ms
10,116 KB
testcase_10 AC 29 ms
10,116 KB
testcase_11 AC 28 ms
10,116 KB
testcase_12 AC 26 ms
10,116 KB
testcase_13 AC 27 ms
10,116 KB
testcase_14 AC 26 ms
10,116 KB
testcase_15 AC 91 ms
34,436 KB
testcase_16 AC 30 ms
11,552 KB
testcase_17 AC 30 ms
10,892 KB
testcase_18 AC 28 ms
11,060 KB
testcase_19 AC 27 ms
10,468 KB
testcase_20 AC 30 ms
11,148 KB
testcase_21 AC 30 ms
11,148 KB
testcase_22 AC 28 ms
10,748 KB
testcase_23 AC 27 ms
10,380 KB
testcase_24 AC 29 ms
10,556 KB
testcase_25 AC 32 ms
11,292 KB
testcase_26 AC 32 ms
11,416 KB
testcase_27 AC 32 ms
11,260 KB
testcase_28 AC 29 ms
10,856 KB
testcase_29 AC 28 ms
10,320 KB
testcase_30 AC 32 ms
11,380 KB
testcase_31 AC 29 ms
10,900 KB
testcase_32 AC 31 ms
11,068 KB
testcase_33 AC 65 ms
14,056 KB
testcase_34 AC 66 ms
14,056 KB
testcase_35 AC 65 ms
14,056 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, x, y = map(int, input().split())
R = list(map(int, input().split()))

if n == 1:
    if x**2 + y**2 == R[0]**2:
        print("Yes")
    else:
        print("No")
    exit()

maxr = 2 * sum(R) - min(R)
if x**2 + y**2 <= maxr**2:
    print("Yes")
else:
    print("No")
0