結果

問題 No.1944 ∞
ユーザー koba-e964koba-e964
提出日時 2022-05-20 22:15:16
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 253 bytes
コンパイル時間 174 ms
コンパイル使用メモリ 81,748 KB
実行使用メモリ 102,828 KB
最終ジャッジ日時 2023-10-20 12:57:58
合計ジャッジ時間 3,078 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 40 ms
53,320 KB
testcase_02 AC 40 ms
53,320 KB
testcase_03 WA -
testcase_04 AC 39 ms
53,320 KB
testcase_05 AC 39 ms
53,320 KB
testcase_06 AC 39 ms
53,320 KB
testcase_07 AC 39 ms
53,320 KB
testcase_08 AC 39 ms
53,320 KB
testcase_09 WA -
testcase_10 AC 39 ms
53,320 KB
testcase_11 WA -
testcase_12 AC 39 ms
53,320 KB
testcase_13 AC 39 ms
53,320 KB
testcase_14 AC 40 ms
53,320 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 44 ms
59,384 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 46 ms
61,432 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 44 ms
59,384 KB
testcase_24 AC 44 ms
59,384 KB
testcase_25 AC 46 ms
61,432 KB
testcase_26 AC 46 ms
61,432 KB
testcase_27 AC 46 ms
61,432 KB
testcase_28 WA -
testcase_29 WA -
testcase_30 AC 47 ms
61,432 KB
testcase_31 AC 46 ms
59,384 KB
testcase_32 AC 46 ms
61,432 KB
testcase_33 WA -
testcase_34 AC 79 ms
95,652 KB
testcase_35 AC 77 ms
95,652 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3

n, x, y = map(int, input().split())
r = list(map(int, input().split()))
r.sort()
t = r[n - 1]
s = sum(r) - t
d = x * x + y * y
lo = max(0, s - t)
if d <= (s + t) * (s + t) and d >= lo * lo:
    print('Yes')
else:
    print('No')
0